aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2017-03-10 11:36:39 +1100
committerJ. Bruce Fields <bfields@redhat.com>2017-03-10 17:04:50 -0500
commit800a938f0bf9130c8256116649c0cc5806bfb2fd (patch)
tree6c490aba399eaf0db00f939de56519f20c8363c6 /net
parentNFSD: fix nfsd_minorversion(.., NFSD_AVAIL) (diff)
downloadlinux-dev-800a938f0bf9130c8256116649c0cc5806bfb2fd.tar.xz
linux-dev-800a938f0bf9130c8256116649c0cc5806bfb2fd.zip
NFSD: fix nfsd_reset_versions for NFSv4.
If you write "-2 -3 -4" to the "versions" file, it will notice that no versions are enabled, and nfsd_reset_versions() is called. This enables all major versions, not no minor versions. So we lose the invariant that NFSv4 is only advertised when at least one minor is enabled. Fix the code to explicitly enable minor versions for v4, change it to use nfsd_vers() to test and set, and simplify the code. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions