From: David Howells Subject: Re: [PATCH 24/27] NFS: Use local caching [try #2] Date: Thu, 07 Feb 2008 10:57:49 +0000 Message-ID: <28135.1202381869@redhat.com> References: <479901A8.3000706@oracle.com> <20080123172038.11107.86025.stgit@warthog.procyon.org.uk> <20080123172246.11107.62216.stgit@warthog.procyon.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Trond.Myklebust@netapp.com, nfsv4@linux-nfs.org, linux-kernel@vger.kernel.org, dhowells@redhat.com, linux-security-module@vger.kernel.org, selinux@tycho.nsa.gov, linux-fsdevel@vger.kernel.org To: chuck.lever@oracle.com Return-path: In-Reply-To: <479901A8.3000706@oracle.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nfsv4-bounces@linux-nfs.org Errors-To: nfsv4-bounces@linux-nfs.org List-Id: linux-fsdevel.vger.kernel.org Chuck Lever wrote: > > @@ -95,12 +100,25 @@ struct nfs_server { > > unsigned int acdirmin; > > unsigned int acdirmax; > > unsigned int namelen; > > + unsigned int options; /* extra options enabled by mount */ > > +#define NFS_OPTION_FSCACHE 0x00000001 /* - local caching enabled */ > > Why did you choose to create a new field for this rather than setting up a new > NFS_MNT flag? The new in-kernel NFS mount option parser uses the NFS_MNT > flags too. There aren't any NFS_MNT flags, so I presume you mean NFS_MOUNT flags. As I understood Trond, it's not permitted to add new such flags except in really special circumstances as these are part of the mount syscall interface. I took this to mean that I should record the option elsewhere than in server->flags. David