[Devel] [PATCH 2/6] nfsd: swap fs root in NFSd kthreads
Al Viro
viro at ZenIV.linux.org.uk
Tue Dec 11 06:58:58 PST 2012
On Tue, Dec 11, 2012 at 09:56:21AM -0500, J. Bruce Fields wrote:
> That looks simpler, but I still don't understand why we need it.
>
> I'm confused about how d_path works; I would have thought that
> filesystem namespaces would have their own vfsmount trees and hence that
> the (vfsmount, dentry) would be enough to specify the path. Is the root
> argument for the case of chroot? Do we care about that?
__d_path() is relative pathname from here to there. Whether (and what for)
is it wanted in case of nfsd patches is a separate question...
> Also, svc_export_request is called from mountd's read of
> /proc/net/rpc/nfsd.export/channel. If mountd's root is wrong, then
> nothing's going to work anyway.
More information about the Devel
mailing list