]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: fix configuration of supported minor versions
authorTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 22 Feb 2017 23:35:32 +0000 (18:35 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 27 Feb 2017 23:04:08 +0000 (18:04 -0500)
commit1de1216b6b37b34fa586e5c36dcfb4a461f915f1
treeb0de5bf1afd7508f312d2ea60183e5a9c8b58222
parent18f920cb1dec36cf2f4a6915b6c60a5daa5ca793
nfsd: fix configuration of supported minor versions

When the user turns off all minor versions of NFSv4, that should be
equivalent to turning off NFSv4 support, so a mount attempt using NFSv4
should get RPC_PROG_MISMATCH, not NFSERR_MINOR_VERS_MISMATCH.

Allow the user to use either '4.0' or '4' to enable or disable minor
version 0.  Other minor versions are still enabled or disabled using the
'4.x' format.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfsctl.c
fs/nfsd/nfssvc.c