summaryrefslogtreecommitdiffstats
path: root/support/include/nfs/nfs.h
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2010-02-17 14:38:19 -0500
committerSteve Dickson <steved@redhat.com>2010-02-17 14:38:19 -0500
commit6d5ac3fa75024be569b458f4d9b6ce05be47f601 (patch)
tree2d22fd92409c20491b7b3d22beddeb8f60fb556f /support/include/nfs/nfs.h
parent33203b53ac5f43eef995c100299e45bd441c67d8 (diff)
downloadnfs-utils-6d5ac3fa75024be569b458f4d9b6ce05be47f601.tar.gz
nfs-utils-6d5ac3fa75024be569b458f4d9b6ce05be47f601.tar.xz
nfs-utils-6d5ac3fa75024be569b458f4d9b6ce05be47f601.zip
nfsd: Disble NFS 4.1 functionality by default
Due to the fact the current kernel code do not completely conform to the NFS 4.1 RFC, this patch disable the 4.1 support on the server. To control this 41 functionality, the NFS41_SUPPORTED configuration variable now exist that will allow us to re enable the functionality without any code changes. Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/include/nfs/nfs.h')
-rw-r--r--support/include/nfs/nfs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/support/include/nfs/nfs.h b/support/include/nfs/nfs.h
index a64eb0a..c939d78 100644
--- a/support/include/nfs/nfs.h
+++ b/support/include/nfs/nfs.h
@@ -1,6 +1,8 @@
#ifndef _NFS_NFS_H
#define _NFS_NFS_H
+#include <config.h>
+
#include <linux/posix_types.h>
#include <sys/types.h>
#include <netinet/in.h>
@@ -14,7 +16,11 @@
#define NFSD_MAXVERS 4
#define NFSD_MINMINORVERS4 1
+#ifdef NFS41_SUPPORTED
#define NFSD_MAXMINORVERS4 1
+#else
+#define NFSD_MAXMINORVERS4 0
+#endif
struct nfs_fh_len {
int fh_size;