diff options
author | J. Bruce Fields <bfields@redhat.com> | 2013-07-08 19:51:44 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2013-07-12 16:48:52 -0400 |
commit | 35f7a14fc1180164d6358a5885031fc187ef1bfa (patch) | |
tree | d1d8d9e04e9e80af818e7ab82ca8307668529da0 /fs/nfsd/nfs4proc.c | |
parent | 1c327d962fc420aea046c16215a552710bde8231 (diff) | |
download | linux-35f7a14fc1180164d6358a5885031fc187ef1bfa.tar.bz2 |
nfsd4: fix minorversion support interface
You can turn on or off support for minorversions using e.g.
echo "-4.2" >/proc/fs/nfsd/versions
However, the current implementation is a little wonky. For example, the
above will turn off 4.2 support, but it will also turn *on* 4.1 support.
This didn't matter as long as we only had 2 minorversions, which was
true till very recently.
And do a little cleanup here.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4proc.c')
-rw-r--r-- | fs/nfsd/nfs4proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index a7cee864e7b2..0d4c410e4589 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -1293,7 +1293,7 @@ nfsd4_proc_compound(struct svc_rqst *rqstp, * According to RFC3010, this takes precedence over all other errors. */ status = nfserr_minor_vers_mismatch; - if (args->minorversion > nfsd_supported_minorversion) + if (nfsd_minorversion(args->minorversion, NFSD_TEST) <= 0) goto out; status = nfs41_check_op_ordering(args); |