From: ramana <ramana@intraperson.com>
To: Lucas Peet <lpeet@velociti.us>
Cc: autofs@linux.kernel.org
Subject: Re: mount -o bind
Date: Tue, 19 Apr 2005 18:35:07 +0530 [thread overview]
Message-ID: <42650203.10904@intraperson.com> (raw)
In-Reply-To: <200504182056.j3IKutJ30896@mail.velociti.us>
Lucas Peet wrote:
> 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?
>
>
>
To be honest I could not understand 100%.
But still something close to what you are asking is here http://www.intraperson.com/autodir/.
If something else that you want is missing let me know.
Regards
ramana
--
http://www.intraperson.com
next prev parent reply other threads:[~2005-04-19 13:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-18 20:56 mount -o bind Lucas Peet
2005-04-19 13:05 ` ramana [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42650203.10904@intraperson.com \
--to=ramana@intraperson.com \
--cc=autofs@linux.kernel.org \
--cc=lpeet@velociti.us \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.