]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: r355509
authorRick Macklem <rmacklem@FreeBSD.org>
Sun, 29 Dec 2019 23:48:48 +0000 (23:48 +0000)
committerRick Macklem <rmacklem@FreeBSD.org>
Sun, 29 Dec 2019 23:48:48 +0000 (23:48 +0000)
commit673f99dc42886a6a0bb5061afc6fe264599df07c
tree435870035d325040f7529c5025b596414a9108a4
parent39ea5e3b5bdea8cbdb3d4e96315610f4d21e9e25
MFC: r355509
Fix kernel handling of a NFSERR_MINORVERSMISMATCH NFSv4 server reply.

When an NFSv4 server replies NFSERR_MINORVERSMISMATCH, it does not generate
a status result for the first operation in the compound. Without this
patch, this will result in a bogus EBADXDR error return.
Returning EBADXDR is relatively harmless, but a correct reply of
NFSERR_MINORVERSMISMATCH is needed by the pNFS client to select the correct
minor version to use for a File Layout DS now that there can be NFSv4.2
DS servers.

mount_nfs.c still needs to be fixed for this, although how the mount fails
is only useful to help sysadmins isolate why a mount fails.

Found during testing of the NFSv4.2 client and server.
sys/fs/nfs/nfs_commonkrpc.c