]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r346365
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 3 May 2019 02:30:01 +0000 (02:30 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 3 May 2019 02:30:01 +0000 (02:30 +0000)
commit9297f16a23f27234573a606605895683c8cd626c
tree3dbbe9b37d6cf13060bdf40ef30090c72c59776c
parentea3b35c99c53a418b24c8e77cf18b7fb02205303
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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@347040 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/nfs/nfs.h
sys/fs/nfs/nfs_commonsubs.c
sys/fs/nfs/nfsproto.h
sys/fs/nfsserver/nfs_nfsdport.c