All of lore.kernel.org
 help / color / mirror / Atom feed
* mount -o bind
@ 2005-04-18 20:56 Lucas Peet
  2005-04-19 13:05 ` ramana
  2005-04-19 16:40 ` raven
  0 siblings, 2 replies; 8+ messages in thread
From: Lucas Peet @ 2005-04-18 20:56 UTC (permalink / raw)
  To: autofs


[-- Attachment #1.1: Type: text/plain, Size: 1350 bytes --]

Hello,

 

Does autofs / automount have the ability to bind one directory to another
like 'mount -o bind dir1 dir2'?  And if so, can this be handled by using
wildcards in the maps?  Here is my situation:

 

I have a large directory of user's home directories.  These are in a chroot
jail, so making soft links isn't an option, and hard links won't work for
directories.  I need to bind (mount) a directory that lives outside the
chroot jail to a directory / mount point inside each home directory.  The
users will only be accessing this directory for short periods (to copy a
file or two), and I think it would be more practical to have autofs mount it
whenever they needed access to it, and unmount it when they're done.

 

I'm not sure on the exact number of mounted filesystems Linux can handle (or
if a directory mounded via -o bind counts towards that, though I'd assume it
would), but I would think that using automount instead of putting hundreds
of entries into fstab would be more the Linux way of doing things.  Even if
I had to put an entry for each user in a map, that would be a better
solution to me than using fstab, since they all wouldn't be mounted at the
same time, all the time.

 

Dir to be accessed by all users:  /home/stuff/everyone

 

Mounted to: /home/users/*/everyone

 

Is this even possible?

 

Thanks,

 

-Lucas


[-- Attachment #1.2: Type: text/html, Size: 4856 bytes --]

[-- Attachment #2: Type: text/plain, Size: 140 bytes --]

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

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

end of thread, other threads:[~2005-04-20 12:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-18 20:56 mount -o bind Lucas Peet
2005-04-19 13:05 ` ramana
2005-04-19 16:40 ` raven
2005-04-19 16:46   ` raven
2005-04-19 22:02     ` Lucas Peet
2005-04-20  5:42       ` Jim Carter
2005-04-20 11:57         ` raven
2005-04-20 12:02       ` raven

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.