From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bryan Schumaker Subject: Re: [PATCH 05/13] NFSv4.2: Added NFS v4.2 support to the NFS client Date: Thu, 30 May 2013 16:51:55 -0400 Message-ID: <51A7BBEB.60005@netapp.com> References: <1368719808-14584-1-git-send-email-SteveD@redhat.com> <1368719808-14584-6-git-send-email-SteveD@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Trond Myklebust , "David P. Quigley" , Linux NFS list , Linux FS devel list , Linux Security List , SELinux List To: Steve Dickson Return-path: In-Reply-To: <1368719808-14584-6-git-send-email-SteveD@redhat.com> Sender: linux-security-module-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On 05/16/2013 11:56 AM, Steve Dickson wrote: > From: Steve Dickson > > This enable NFSv4.2 support. To enable this code the > CONFIG_NFS_V4_2 Kconfig define needs to be set and > the -o v4.2 mount option need to be used. > > Signed-off-by: Steve Dickson > --- > fs/nfs/Kconfig | 9 +++++++++ > fs/nfs/callback.c | 1 + > fs/nfs/callback_xdr.c | 6 +++--- > fs/nfs/nfs4client.c | 5 +++++ > fs/nfs/nfs4proc.c | 15 +++++++++++++++ > fs/nfs/super.c | 7 ++++++- > include/linux/nfs4.h | 4 ++++ > 7 files changed, 43 insertions(+), 4 deletions(-) > 8< snip >8 > diff --git a/include/linux/nfs4.h b/include/linux/nfs4.h > index 7764aca..4204600 100644 > --- a/include/linux/nfs4.h > +++ b/include/linux/nfs4.h > @@ -399,11 +399,15 @@ enum lock_type4 { > #define NFS4_VERSION 4 > #define NFS4_MINOR_VERSION 0 > > +#if defined(CONFIG_NFS_V4_2) > +#define NFS4_MAX_MINOR_VERSION 2 > +#else > #if defined(CONFIG_NFS_V4_1) > #define NFS4_MAX_MINOR_VERSION 1 > #else > #define NFS4_MAX_MINOR_VERSION 0 > #endif /* CONFIG_NFS_V4_1 */ > +#endif /* CONFIG_NFS_V4_2 */ Could this be done with a #elif so we don't need the nested endif-s? ~ Bryan > > #define NFS4_DEBUG 1 > >