From 327e24b8678c350b70f83f8b58790309a7c94c7b Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Thu, 13 Feb 2014 12:44:06 -0500 Subject: nfsd: support NFS4_MAXMINOR up to the number an unsigned int can keep This implementation allows specifying NFS4 minor version numbers up to the number of bits available in int data type (typically 32 on Linux) This is based on an idea mentioned by J. Bruce Fields mentioned on the linux-nfs mailing list. I changed the data type back from an array to two bit fields, one for storing whether the minor version was specified on the command line and the second one for storing whether it was set or unset. This change was done to prevent blowing up the allocated stack space in an unnecessary fashion. Acked-by: J. Bruce Fields Signed-off-by: Robert Schiele Signed-off-by: Steve Dickson --- support/include/nfs/nfs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'support/include/nfs/nfs.h') diff --git a/support/include/nfs/nfs.h b/support/include/nfs/nfs.h index df4ad76..27054e5 100644 --- a/support/include/nfs/nfs.h +++ b/support/include/nfs/nfs.h @@ -8,6 +8,7 @@ #include #include #include +#include #define NFS3_FHSIZE 64 #define NFS_FHSIZE 32 @@ -16,7 +17,7 @@ #define NFSD_MAXVERS 4 #define NFS4_MINMINOR 1 -#define NFS4_MAXMINOR 2 +#define NFS4_MAXMINOR WORD_BIT struct nfs_fh_len { int fh_size; -- cgit