From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay2.corp.sgi.com [137.38.102.29]) by oss.sgi.com (Postfix) with ESMTP id F36C07D13 for ; Wed, 6 Jul 2016 17:41:51 -0500 (CDT) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by relay2.corp.sgi.com (Postfix) with ESMTP id B8DB630408C for ; Wed, 6 Jul 2016 15:41:48 -0700 (PDT) Received: from fieldses.org (fieldses.org [173.255.197.46]) by cuda.sgi.com with ESMTP id 09E3FTfpcrWv9kBy for ; Wed, 06 Jul 2016 15:41:42 -0700 (PDT) Date: Wed, 6 Jul 2016 18:41:41 -0400 From: "J. Bruce Fields" Subject: Re: [PATCH] nfsd: allow SCSI layout support without Block layout Message-ID: <20160706224141.GA21982@fieldses.org> References: <74871b1ce0d09b21fb67c1b2176695cc1c19169e.1467624319.git.bcodding@redhat.com> <20160706091953.GD12670@dastard> <73B22D64-6A0B-4B8B-8A4D-6AA7AC26F30D@redhat.com> <20160706124326.GA18856@fieldses.org> <20160706221648.GE12670@dastard> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20160706221648.GE12670@dastard> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Dave Chinner Cc: Benjamin Coddington , Christoph Hellwig , xfs@oss.sgi.com On Thu, Jul 07, 2016 at 08:16:48AM +1000, Dave Chinner wrote: > On Wed, Jul 06, 2016 at 08:43:26AM -0400, J. Bruce Fields wrote: > > On Wed, Jul 06, 2016 at 05:58:09AM -0400, Benjamin Coddington wrote: > > > On 6 Jul 2016, at 5:19, Dave Chinner wrote: > > > > > > >On Tue, Jul 05, 2016 at 09:48:47PM -0400, Benjamin Coddington wrote: > > > >>We shouldn't have to configure both NFSD_BLOCKLAYOUT and > > > >>NFSD_SCSILAYOUT if > > > >>all we want are SCSI layouts on the server, so define the xfs export > > > >>operations for either configuration. > > > >> > > > >>Signed-off-by: Benjamin Coddington > > > > > > > >I don't really like exploding config option dependencies into > > > >subsystems that aren't actually related to the config options. > > > >It's confusing enough laready that we've got XFS code dependent on > > > >PNFSD config options without adding more to it. Instead, I'd > > > >suggest this should be resolved in the kconfig files. i.e. make > > > >CONFIG_NFSD_SCSILAYOUT=y select CONFIG_NFSD_BLOCKLAYOUT to resolve > > > >the config dependency at config time. > > > > > > But the point is to leave CONFIG_NFSD_BLOCKLAYOUT undefined > > > otherwise knfsd > > > will advertise block layouts to clients -- which we don't want. > > Pnfsd layout is determined at compile time? On the server side it's currently controlled just by that and by a single off-or-on "pnfs" option. Well, and client behavior also determines which one's actually negotiated in practice. > That's seems less than useful to me for distros wanting to support for > multiple layout types in the one kernel. i.e. Shouldn't the layout to > be advertised be something like a per-export configuration option > rather than determined at compile time define? Yes, eventually we'll want something like that. For now it's not terribly interesting. > > > Would a third define specific for xfs_export_operations that gets > > > set in kconfig files work for you? Something like XFS_PNFS_EXPORT_OPS. > > > > That makes sense to me.... > > Sounds good, but I'd drop the "XFS_" prefix because when multiple > filesytems end up supporting it, we don't want to have to select > every single one of them from the PNFSD config options... OK. --b. _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs