From 1d1c86f6bb4f5bcecfde3fb27e231a2ec2c986fc Mon Sep 17 00:00:00 2001 From: zoulasc Date: Fri, 22 Jan 2016 10:12:52 -0500 Subject: [PATCH] When the NFSv3 access method is called and there is no correspoding mount point for the path we requested, we need to return ESTALE so that the kernel will then perform an NFSv3 lookup and the mount point will be re-mounted. If there is no map entry to mount, the NFSv3 lookup method will return the failure. (Ian Kent) --- amd/nfs_subr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amd/nfs_subr.c b/amd/nfs_subr.c index ef07a4a9..85cf98c2 100644 --- a/amd/nfs_subr.c +++ b/amd/nfs_subr.c @@ -1239,9 +1239,9 @@ am_nfs3_access_3_svc(am_ACCESS3args *argp, struct svc_req *rqstp) if (!mp) { post_op_obj = &result.res_u.fail.obj_attributes; post_op_obj->attributes_follow = 0; - result.status = nfs_error(ENOENT); + result.status = nfs_error(ESTALE); if (amuDebug(D_TRACE)) - plog(XLOG_DEBUG, "access_3: ENOENT"); + plog(XLOG_DEBUG, "access_3: ESTALE"); } else { nfsfattr *fattr = &mp->am_fattr; am_fattr3 *fattr3; -- 2.43.0