]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: r346365
authorrmacklem <rmacklem@FreeBSD.org>
Fri, 3 May 2019 02:17:52 +0000 (02:17 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Fri, 3 May 2019 02:17:52 +0000 (02:17 +0000)
commit8cf94925dbc74212d7ed686a9b95251e7baa06ca
treecd76803bf8a88956ac5a6fe32f36c1ff1a4007fc
parent1be44099f99eb52cbe66e7ff23f9d5ea9a997ce0
MFC: r346365
Fix the NFSv4.0 server so that it does not support NFSv4.1 attributes.

During inspection of a packet trace, I noticed that an NFSv4.0 mount
reported that it supported attributes that are only defined for NFSv4.1.
In practice, this bug appears to be benign, since NFSv4.0 clients will
not use attributes that were added for NFSv4.1.
However, this was not correct and this patch fixes the NFSv4.0 server
so that it only supports attributes defined for NFSv4.0.
It also adds a definition for NFSv4.1 attributes that can only be set,
although it is only defined as 0 for now.
This is anticipation of the addition of support for the NFSv4.1 mode+mask
attribute soon.
sys/fs/nfs/nfs.h
sys/fs/nfs/nfs_commonsubs.c
sys/fs/nfs/nfsproto.h
sys/fs/nfsserver/nfs_nfsdport.c