diff options
author | Benny Halevy <bhalevy@panasas.com> | 2009-05-04 11:44:49 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-05-04 11:44:49 -0400 |
commit | b750909f50fb184cb82344d40a150f0d2760ef21 (patch) | |
tree | 93bc4c66b6407809986639cd3c57965a444343c9 /support/include/nfs/nfs.h | |
parent | 6a72b8af3abaf3792702c834bab5a5049818f9c6 (diff) | |
download | nfs-utils-b750909f50fb184cb82344d40a150f0d2760ef21.tar.gz nfs-utils-b750909f50fb184cb82344d40a150f0d2760ef21.tar.xz nfs-utils-b750909f50fb184cb82344d40a150f0d2760ef21.zip |
utils/nfsd: add support for minorvers4
minorvers4 can be used to either enable or disable nfsv4.x.
If minorvers4 is a positive integer n, in the allowed range (only
minorversion 1 is supported for now), the string "+4.n" is appended
to the versions string written onto /proc/fs/nfsd/versions.
Correspondingly, if minorver4 is a negative integer -n, the string
"-4.n" is written.
With the default value, minorvers4==0, the minor version
setting is not changed.
Note that unlike the protocol versions 2, 3, or 4. The minor version
setting controls the *maximum* minor version nfsd supports. Particular
minor version cannot be controlled on their own. With only minor
version 1 supported at the moment the difference doesn't matter,
but for future minor versions greater than 1, enabling minor
version X will enable support for all minor versions 1 through X.
Disabling minor version X will disable support for minor
versions X and up, enabling 1 through X-1.
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/include/nfs/nfs.h')
-rw-r--r-- | support/include/nfs/nfs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/support/include/nfs/nfs.h b/support/include/nfs/nfs.h index fc26f4e..00b0028 100644 --- a/support/include/nfs/nfs.h +++ b/support/include/nfs/nfs.h @@ -13,6 +13,9 @@ #define NFSD_MINVERS 2 #define NFSD_MAXVERS 4 +#define NFSD_MINMINORVERS4 1 +#define NFSD_MAXMINORVERS4 1 + struct nfs_fh_len { int fh_size; u_int8_t fh_handle[NFS3_FHSIZE]; |