aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4proc.c
diff options
context:
space:
mode:
authorBenny Halevy <bhalevy@panasas.com>2009-04-03 01:28:59 -0400
committerJ. Bruce Fields <bfields@citi.umich.edu>2009-04-03 20:41:21 -0400
commit8daf220a6a83c47b9648c28bb819c14c60bad7f9 (patch)
treee762cf2c8f0b31dac96989ac14c4cc8756e1af1d /fs/nfsd/nfs4proc.c
parent84459a1162801fb84734e5f9e6dc5194f791d69b (diff)
nfsd41: control nfsv4.1 svc via /proc/fs/nfsd/versions
Support enabling and disabling nfsv4.1 via /proc/fs/nfsd/versions by writing the strings "+4.1" or "-4.1" correspondingly. Use user mode nfs-utils (rpc.nfsd option) to enable. This will allow us to get rid of CONFIG_NFSD_V4_1 [nfsd41: disable support for minorversion by default] Signed-off-by: Benny Halevy <bhalevy@panasas.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd/nfs4proc.c')
-rw-r--r--fs/nfsd/nfs4proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c
index db208dd8fdca..52bb14debb30 100644
--- a/fs/nfsd/nfs4proc.c
+++ b/fs/nfsd/nfs4proc.c
@@ -921,7 +921,7 @@ nfsd4_proc_compound(struct svc_rqst *rqstp,
921 * According to RFC3010, this takes precedence over all other errors. 921 * According to RFC3010, this takes precedence over all other errors.
922 */ 922 */
923 status = nfserr_minor_vers_mismatch; 923 status = nfserr_minor_vers_mismatch;
924 if (args->minorversion > NFSD_SUPPORTED_MINOR_VERSION) 924 if (args->minorversion > nfsd_supported_minorversion)
925 goto out; 925 goto out;
926 926
927 if (!nfs41_op_ordering_ok(args)) { 927 if (!nfs41_op_ordering_ok(args)) {