Andrew Morton <[email protected]> wrote:
> The automounter will mount bix:/ on /net/bix. But I am unable to get it to
> mount bix's /usr/src on /net/bix/usr/src.
>From what I can tell, the problem is that the automounter causes a dentry to
be created on the xdev transition point, but the dentry is not set up right to
do in-NFS automounting on the follow_link() op.
By "xdev transition point" I mean a directory exported from the server that
has a different FSID to its parent. The NFS client detects that and provides
automounting facilities in the following manner:
(1) A directory dentry is set up in the superblock of the parent FSID to
represent the transition point. This dentry has a follow_link() op set.
(2) When someone tries to traverse the transition point, the follow_link() op
is invoked. This causes a new superblock to be created to represent the
new FSID, and a root directory entry is allocated there. This new root
is then mounted over the dentry set up in (1).
(3) The follow_link() op of the transit dentry returns the mountpoint dentry
as if a symlink had been transited. Further transits just see the
mountpoint and ignore the transit dentry at the bottom of the pile.
Note that an lstat() of the transit dentry does not cause automounting to take
place because lstat() does not follow terminal symlinks, and thus does not
invoke the follow_link() op.
However, when the automounter preemptively creates a dentry there with mkdir,
it can install a directory dentry *without* the appropriate follow_link() op.
David
--
VGER BF report: H 0.00103342
-
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]