]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix the NFSv4.0 server so that it does not support NFSv4.1 attributes.
authorrmacklem <rmacklem@FreeBSD.org>
Fri, 19 Apr 2019 03:36:22 +0000 (03:36 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Fri, 19 Apr 2019 03:36:22 +0000 (03:36 +0000)
commit9454609db319b0badd769d3e930c54fc10de3ea7
tree57a1d73161e2e3e2340d6cbfea21776996f454e0
parent2d9b7751212d3943c66f3f50074c30408b38b5cd
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.

MFC after: 2 weeks
sys/fs/nfs/nfs.h
sys/fs/nfs/nfs_commonsubs.c
sys/fs/nfs/nfsproto.h
sys/fs/nfsserver/nfs_nfsdport.c