> > > Perhaps not in this case.
> >
> > Maybe I'm misunderstanding.
> >
> > Are you talking about an automounted filesystem, or the autofs
> > filesystem itself.
>
> I'm talking about the autofs filesystem (actually the autofs4 module).
OK.
> >
> > With the later I can well imagine that you have problems with bind and
> > move.
>
> yep.
>
> I'm not really concerned about whether bind and move mounts work or not. I
> just need to establish whether these should be supported and if so, how
> they should work so I can resolve the problem. Personally, I would be
> happy to say these types of mounts are not supported by autofs if I could
> veto the requests.
Does it work if somebody renames a directory in the path leading to
the autofs mountpoint? The result is very similar to move mount.
You could solve both, by having the automoutnter daemon chdir to the
autofs root, and then it would just not care about any namespace
changes outside it's own filesystem.
Bind and clone(... CLONE_NEWNS) are trickier if you want to make
automounting work in the new instance. It should be workable, if the
autofs kernel module returns a reference not just to the dentry but
the dentry/vfsmount pair to the daemon. For example it could open a
file descriptor with dentry_open() refering to the mountpoint, and
pass that to userspace. The daemon then can do the mount on in
(either by doing fchdir(fd) and 'mount blah .', or 'mount blah
/proc/PID/fd/FD').
This is all very theoretical, I don't know how the internals of
autofs...
On a related note, have you looked at using the kernel atumounter
support for autofs? (Documentation/filesystems/automount-support.txt)
Miklos
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]