提交 fed83811 编写于 作者: J J. Bruce Fields

nfsd4: cross mountpoints when looking up parents

3c394dda "nfsd4: nfsv4 clients should
cross mountpoints" forgot to handle lookups of parents directories.
Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
上级 03d6a74b
...@@ -169,7 +169,7 @@ nfsd_lookup_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp, ...@@ -169,7 +169,7 @@ nfsd_lookup_dentry(struct svc_rqst *rqstp, struct svc_fh *fhp,
dentry = dget(dparent); dentry = dget(dparent);
else if (dparent != exp->ex_path.dentry) else if (dparent != exp->ex_path.dentry)
dentry = dget_parent(dparent); dentry = dget_parent(dparent);
else if (!EX_NOHIDE(exp)) else if (!EX_NOHIDE(exp) && !nfsd_v4client(rqstp))
dentry = dget(dparent); /* .. == . just like at / */ dentry = dget(dparent); /* .. == . just like at / */
else { else {
/* checking mountpoint crossing is very different when stepping up */ /* checking mountpoint crossing is very different when stepping up */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册