From e79baddaa1d8cf24cce929e14f6f91ac0d5e15d0 Mon Sep 17 00:00:00 2001 From: Trond Myklebust Date: Mon, 25 Mar 2013 16:07:59 -0400 Subject: 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 Signed-off-by: Trond Myklebust Signed-off-by: Steve Dickson --- support/include/nfs/nfs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'support/include/nfs/nfs.h') 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) -- cgit