diff options
author | NeilBrown <neilb@suse.com> | 2017-03-10 11:36:39 +1100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2017-03-10 17:04:50 -0500 |
commit | 800a938f0bf9130c8256116649c0cc5806bfb2fd (patch) | |
tree | 6c490aba399eaf0db00f939de56519f20c8363c6 /net | |
parent | 928c6fb3a9bfd6c5b287aa3465226add551c13c0 (diff) |
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