On Wed, 7 Jun 2000, Petr Vandrovec wrote:
> > A) suppose we have a bunch of filesystems union-mounted on
> > /foo/bar. We do chdir("/foo/bar"), what should become busy? Variants:
> > mountpoint, first element, last element, all of them.
>
> I believe that all of them. Or, we can make alternative and mark
> none of them busy (together with Tigran yet-to-write force unmount) -
> if there is reason why cwd should make filesystem busy at all...
if something does cwd or chroot and so keeps any (and/or all) of the
mountpoints busy I deal with it thus - forcibly chroot/chdir it to a newly
allocated inode (and dentry) in the nullfs which makes the originals no
longer busy. Actually all of the code that dealt with cwd/chroot/open/mmap
was written and tested but after Al's changes "one superblock - many
mountpoints" I realized I have to rewrite most of it (mostly simply
changes like match mountpoints instead of matching superblocks - a few
cleanups left to do where I wasn't sure that mnt_count accounting was
broken because of my changes or because of VFS - will come back to it
soon, as promised after mid-July).
Regards,
Tigran.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:27 EST