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>
This commit is contained in:
committed by
J. Bruce Fields
parent
84459a1162
commit
8daf220a6a
@@ -921,7 +921,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_MINOR_VERSION)
|
||||
if (args->minorversion > nfsd_supported_minorversion)
|
||||
goto out;
|
||||
|
||||
if (!nfs41_op_ordering_ok(args)) {
|
||||
|
||||
Reference in New Issue
Block a user