]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Ignore the cookie verifier for NFSv4.1 when the cookie is 0.
authorrmacklem <rmacklem@FreeBSD.org>
Wed, 11 Jul 2018 23:23:29 +0000 (23:23 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Wed, 11 Jul 2018 23:23:29 +0000 (23:23 +0000)
commit7ad0403b62fcd449f7fc041b47771d7411de9b0f
tree519e9fb95458aa581b2b301bdc1397eb99884cf0
parent89b54d030b566a715474d204724aec638de6f1f0
Ignore the cookie verifier for NFSv4.1 when the cookie is 0.

RFC5661 states that the cookie verifier should be 0 when the cookie is 0.
However, the wording is somewhat unclear and a recent discussion on the
nfsv4@ietf.org mailing list indicated that the NFSv4 server should ignore
the cookie verifier's value when the dirctory offset cookie is 0.
This patch deletes the check for this that would return NFSERR_BAD_COOKIE
when the verifier was not 0.
This was found during testing of the ESXi client against the NFSv4.1 server.

Reported by: daniel@ftml.net (via packet trace)
MFC after: 2 weeks
sys/fs/nfsserver/nfs_nfsdport.c