1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00

Fix nfsmount() so that it will return NFSERR_MINORVERMISMATCH.

If nfsrpc_getdirpath() returns NFSERR_MINORVERMISMATCH, it would erroneously
get mapped to EIO. This was not particularily harmful, but would make it
hard for sysadmins to diagnose why an NFSv4 mount is failing.

mount_nfs.c still needs to be fixed so that it does not report
NFSERR_MINORVERMISMATCH as an unknown error 10021.

MFC after:	1 week
This commit is contained in:
Rick Macklem 2019-12-25 01:15:38 +00:00
parent 18346de0cc
commit 05dcd5d2c8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=356066

View File

@ -1544,10 +1544,8 @@ mountnfs(struct nfs_args *argp, struct mount *mp, struct sockaddr *nam,
if (error)
(void) nfs_catnap(PZERO, error, "nfsgetdirp");
} while (error && --trycnt > 0);
if (error) {
error = nfscl_maperr(td, error, (uid_t)0, (gid_t)0);
if (error)
goto bad;
}
}
/*