diff options
author | Benny Halevy <bhalevy@panasas.com> | 2009-04-03 08:28:59 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-04-03 17:41:21 -0700 |
commit | 8daf220a6a83c47b9648c28bb819c14c60bad7f9 (patch) | |
tree | e762cf2c8f0b31dac96989ac14c4cc8756e1af1d /include/linux/nfsd | |
parent | 84459a1162801fb84734e5f9e6dc5194f791d69b (diff) | |
download | kernel_samsung_smdk4412-8daf220a6a83c47b9648c28bb819c14c60bad7f9.zip kernel_samsung_smdk4412-8daf220a6a83c47b9648c28bb819c14c60bad7f9.tar.gz kernel_samsung_smdk4412-8daf220a6a83c47b9648c28bb819c14c60bad7f9.tar.bz2 |
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 'include/linux/nfsd')
-rw-r--r-- | include/linux/nfsd/nfsd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nfsd/nfsd.h b/include/linux/nfsd/nfsd.h index 1f063d4..70339b7 100644 --- a/include/linux/nfsd/nfsd.h +++ b/include/linux/nfsd/nfsd.h @@ -53,6 +53,7 @@ typedef int (*nfsd_dirop_t)(struct inode *, struct dentry *, int, int); extern struct svc_program nfsd_program; extern struct svc_version nfsd_version2, nfsd_version3, nfsd_version4; +extern u32 nfsd_supported_minorversion; extern struct mutex nfsd_mutex; extern struct svc_serv *nfsd_serv; @@ -149,6 +150,7 @@ int nfsd_set_posix_acl(struct svc_fh *, int, struct posix_acl *); enum vers_op {NFSD_SET, NFSD_CLEAR, NFSD_TEST, NFSD_AVAIL }; int nfsd_vers(int vers, enum vers_op change); +int nfsd_minorversion(u32 minorversion, enum vers_op change); void nfsd_reset_versions(void); int nfsd_create_serv(void); |