Author: rmacklem
Date: Wed Dec 25 01:15:38 2019
New Revision: 356066
URL: https://svnweb.freebsd.org/changeset/base/356066
Log:
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
Modified:
head/sys/fs/nfsclient/nfs_clvfsops.c
Modified: head/sys/fs/nfsclient/nfs_clvfsops.c
==============================================================================
--- head/sys/fs/nfsclient/nfs_clvfsops.c Tue Dec 24 23:43:29 2019
(r356065)
+++ head/sys/fs/nfsclient/nfs_clvfsops.c Wed Dec 25 01:15:38 2019
(r356066)
@@ -1544,10 +1544,8 @@ mountnfs(struct nfs_args *argp, struct mount *mp, stru
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;
- }
}
/*
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"