public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* automount doesn't "follow" bind mounts
@ 2002-08-20 17:10 Matt Bernstein
  2002-08-20 20:58 ` H. Peter Anvin
  0 siblings, 1 reply; 9+ messages in thread
From: Matt Bernstein @ 2002-08-20 17:10 UTC (permalink / raw)
  To: linux-kernel

I tried to subscribe to the autofs list, but majordomo isn't replying to 
me! I think this is a problem in the automount daemon rather than the 
kernel autofs code itself.

I'm trying to automount our home dirs as
	/homes/$USERNAME
which should bind mount to
	:/home/$SERVER/$HOMENAME/$USERNAME
which should bind mount to
	:/home/$SERVER/$VOLUME/$PATH/$USERNAME
which (phew!) will be an NFS mount to
	$SERVER:/$VOLUME/$PATH/$USERNAME

The idea is that:
	(1) `/bin/pwd` = "/homes/$USERNAME"
	(2) when you run "quota" it'll only report for $SERVER:/$VOLUME

Now.. this all works perfectly if before looking at /homes/$USERNAME you
look at firstly /home/$SERVER/$VOLUME/$PATH/$USERNAME and then secondly
/home/$SERVER/$HOMENAME/$USERNAME, because the bind mounts have something
to bind to. Of course you shouldn't need to know the middle bits, but you
could look them up. Currently the binds mount fail and automount drops in
symlinks; this satisfies (2)  above, but unfortunately not (1).

I hope someone can make sense of this. Is it different in autofs4?

Matt


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-08-21  0:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-20 17:10 automount doesn't "follow" bind mounts Matt Bernstein
2002-08-20 20:58 ` H. Peter Anvin
2002-08-20 21:35   ` H. Peter Anvin
2002-08-20 22:09     ` Benjamin LaHaise
2002-08-20 22:18       ` H. Peter Anvin
2002-08-20 22:20         ` Benjamin LaHaise
2002-08-20 22:21           ` H. Peter Anvin
2002-08-21  0:33       ` stoffel
2002-08-21  0:35         ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox