summaryrefslogtreecommitdiffstats
path: root/support/include/nfs/nfs.h
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2013-03-25 16:07:59 -0400
committerSteve Dickson <steved@redhat.com>2013-03-25 16:07:59 -0400
commite79baddaa1d8cf24cce929e14f6f91ac0d5e15d0 (patch)
tree6a074a61513b033a21252d025725572a59c2f2aa /support/include/nfs/nfs.h
parentadabe938c17b22aec5e89c24e1856de9fffe9f0c (diff)
downloadnfs-utils-e79baddaa1d8cf24cce929e14f6f91ac0d5e15d0.tar.gz
nfs-utils-e79baddaa1d8cf24cce929e14f6f91ac0d5e15d0.tar.xz
nfs-utils-e79baddaa1d8cf24cce929e14f6f91ac0d5e15d0.zip
nfsd: Add support for the -V and --nfs-version optional arguments
Add command line options to enable those NFS versions that are currently disabled by default. We choose to use the options '-V' and '--nfs-version' for compatibility with rpc.mountd. Acked-by: J. Bruce Fields <bfields@fieldses.org> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/include/nfs/nfs.h')
-rw-r--r--support/include/nfs/nfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/support/include/nfs/nfs.h b/support/include/nfs/nfs.h
index 320880e..174c2dd 100644
--- a/support/include/nfs/nfs.h
+++ b/support/include/nfs/nfs.h
@@ -52,6 +52,7 @@ struct nfs_fh_old {
#define NFSCTL_UDPISSET(_cltbits) ((_cltbits) & NFSCTL_UDPBIT)
#define NFSCTL_TCPISSET(_cltbits) ((_cltbits) & NFSCTL_TCPBIT)
+#define NFSCTL_VERSET(_cltbits, _v) ((_cltbits) |= (1 << ((_v) - 1)))
#define NFSCTL_UDPSET(_cltbits) ((_cltbits) |= NFSCTL_UDPBIT)
#define NFSCTL_TCPSET(_cltbits) ((_cltbits) |= NFSCTL_TCPBIT)