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)
commitd3635ff07e8ca598d44f72bbf5d6c65b8ebeeb46
treeb0de5bf1afd7508f312d2ea60183e5a9c8b58222
parent7259f1dfe718234fee3f87d98d082e7f98d1d712
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