Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2008424yba; Sat, 27 Apr 2019 12:02:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDjfdN9uCZrt6bJUGFBYxYX9vEPTexw21EURaMuABH4yz70sjToGXr6kX++5yNyH+I8n9O X-Received: by 2002:a17:902:9b92:: with SMTP id y18mr44812082plp.187.1556391728000; Sat, 27 Apr 2019 12:02:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556391727; cv=none; d=google.com; s=arc-20160816; b=qSQShM2WYXTcK10PrpARSGooUgBHmL5bad7cLOmSuA79rjiIdTLk8WhjN6WGTrWhvS uoDiu2p3o7PVq7FJmzyM4f4lABXZsNPoHq/Z3RUsjdUKPEKbaVcVmsuR1mbo4Q2Tky3+ fWFec3wDrZp5z2/uBCTPaT8SdiHxC45wsUzn3LqPY2GzHwvyCtBvtHSNB4YOLtqSwAjK 3kF2mSdR7jzI2nqnY/81GA8fgwM0rmFhcjHbcH1qoXHTIZnCiDGlMKgs+TfQ/GAOo7po yhcSbsCuPu/sZpS/5zQY47BeaXRE4PM0CRpsfq9+DWNHValldUaLkMdWiWcLTpxbn4C+ N00A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ChEEb2w9UHPOJS3i7FvhbniDLlI4FuzykpmIc8VuZtI=; b=bn2B+kc6zPBkwLMa5XFBLtH9Av2B5TU0yVtfMwtaQ5M4+OM/pgO5xuKNeLz8lcWcSU W10BacUPtviAvxd3S7DrEIGh7hg/xNnjYwQoIWrwn9krMdFcMptjr9Qk4cBWMsUhuGhJ h1l/wMjmXaxsq+VnJsyzBbbzC8Adhi27rdtZTUp2HwVxtQeT+nfNloYiAXh3jmH9umfi //ngvwblgO7n06tZlieT+tjAsq6LUXKXOURTg+YQmzdEu1BXOXCke5LZW73iBH8TCYkm vbOyqsRhZeRUjTsu0idhu1XOsUmvMbwQ9+0OK7Yxl/XcTcGhus6kGQfmtl0TsknFvrr5 O1cA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n8si9800391pgq.568.2019.04.27.12.01.36; Sat, 27 Apr 2019 12:02:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725995AbfD0TAj (ORCPT + 99 others); Sat, 27 Apr 2019 15:00:39 -0400 Received: from fieldses.org ([173.255.197.46]:55336 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725921AbfD0TAi (ORCPT ); Sat, 27 Apr 2019 15:00:38 -0400 Received: by fieldses.org (Postfix, from userid 2815) id 09B751CC9; Sat, 27 Apr 2019 15:00:38 -0400 (EDT) Date: Sat, 27 Apr 2019 15:00:38 -0400 From: "J. Bruce Fields" To: NeilBrown Cc: Andreas Dilger , "J. Bruce Fields" , linux-nfs , linux-fsdevel , abe@purdue.edu, lsof-l@lists.purdue.edu, util-linux@vger.kernel.org, Jeff Layton , James Simmons Subject: Re: [PATCH 00/10] exposing knfsd opens to userspace Message-ID: <20190427190038.GB9568@fieldses.org> References: <1556201060-7947-1-git-send-email-bfields@redhat.com> <87lfzx65ax.fsf@notabene.neil.brown.name> <60EB550C-B79C-4DB4-AE3D-F1FCEB49EDA1@dilger.ca> <20190426125611.GA23112@fieldses.org> <87imv05nkk.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87imv05nkk.fsf@notabene.neil.brown.name> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Sat, Apr 27, 2019 at 09:55:23AM +1000, NeilBrown wrote: > On Fri, Apr 26 2019, J. Bruce Fields wrote: > > But it's true that from the start nfsd didn't really fit the model > > of a single (possibly writeable) attribute per file. > > Depends on what you mean by that. Original files where write-only and > where slightly complex attributes. Yes I thought it was just those too, but then I looked at the original commit it also included at least the "exports" file. > Writing performed an action, like > adding an entry to the export table (first you add a client, then add a > client+filesystem to export it). > > This idea for a file performing an action, rather than presenting an > attribute, is much the same as the "bind" and "unbind" files you can > find in sysfs. > > (see also https://lwn.net/Articles/378884/ for examples of sysfs files > that are not one-attribute-per-file) I'll give that a re-read, thanks. I did spend maybe a few minutes looking into basing nfsd code on kernfs and didn't think it was worth it. I could take a more serious look. --b.