Re: [nfsv4] follow-up of xattr discussion

David Noveck <davenoveck@gmail.com> Fri, 31 July 2015 18:20 UTC

Return-Path: <davenoveck@gmail.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1B0C41B31D6 for <nfsv4@ietfa.amsl.com>; Fri, 31 Jul 2015 11:20:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9VGeYSYUVtNU for <nfsv4@ietfa.amsl.com>; Fri, 31 Jul 2015 11:20:29 -0700 (PDT)
Received: from mail-oi0-x22e.google.com (mail-oi0-x22e.google.com [IPv6:2607:f8b0:4003:c06::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8E9231B3427 for <nfsv4@ietf.org>; Fri, 31 Jul 2015 11:20:28 -0700 (PDT)
Received: by oigi136 with SMTP id i136so42393578oig.1 for <nfsv4@ietf.org>; Fri, 31 Jul 2015 11:20:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=OXYbFjanYrt03/YjhakhImfI6TFJtvvtCWZvdqbzczM=; b=MgMoIyQ3brgU10x6ONX8ZKB4uO5qW88DwJB7z2HM0FZLllCojl567Z6u2DwvDf/PRa phGDX97yK513462vkxeU4loYhfZ5S12yy+SGbNmOauCwLwM9LyjNnYdSHZSp2dZZkj40 IQGCCAn202Y0A0arqyGcyLP5RzgG1rcqxauLeGBEUsf60O5++75efXS0y9L43RFktT1i hUo15GKtZUjueBiL1yCBpz927oQDbDYJuun4nnFuo8+HKDBO4hQgcklxKTo+uK53Mv8J mN408ItBmnCRsQYvIWXYIcTLmaRj2y0y+qdSQnSBScPp2KBpC5XOEykrMbmsJWb7PkgM DEvQ==
MIME-Version: 1.0
X-Received: by 10.202.95.138 with SMTP id t132mr4458442oib.55.1438366827978; Fri, 31 Jul 2015 11:20:27 -0700 (PDT)
Received: by 10.182.118.196 with HTTP; Fri, 31 Jul 2015 11:20:27 -0700 (PDT)
In-Reply-To: <201507311524.t6VFOQGk024258@d03av05.boulder.ibm.com>
References: <2012078076.247893.1437644524491.JavaMail.zimbra@desy.de> <20150723095818.GA32487@lst.de> <CA+isNR+bVaNt04UbT0B1T5=UuS8di6p5-y0WfNruDfx2ZYdJig@mail.gmail.com> <57973269.254482.1437648687957.JavaMail.zimbra@desy.de> <20150723153841.GB13399@fieldses.org> <CAABAsM6XuGR5xkg297wGtc0oQ5UARY6K_ck+10JMdAEfZGHXvA@mail.gmail.com> <CADaq8jeX2yYA1Z7ddmm01e7STKGk=infXPvfz6rqtMn_7-2VVA@mail.gmail.com> <20150723184547.GB14362@fieldses.org> <201507311524.t6VFOQGk024258@d03av05.boulder.ibm.com>
Date: Fri, 31 Jul 2015 14:20:27 -0400
Message-ID: <CADaq8jdBzmZSnTKq3GHZ21j3HVCJKPnwDCpxsetY_Jc8s_na2g@mail.gmail.com>
From: David Noveck <davenoveck@gmail.com>
To: Manoj Naik <mnaik@us.ibm.com>
Content-Type: multipart/alternative; boundary="001a113cd41ad6a9f8051c2fdf16"
Archived-At: <http://mailarchive.ietf.org/arch/msg/nfsv4/1W12K2TQhsUzMvIgdS5Vt0RhXqM>
Cc: "J. Bruce Fields" <bfields@fieldses.org>, Christoph Hellwig <hch@lst.de>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Subject: Re: [nfsv4] follow-up of xattr discussion
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/nfsv4/>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 31 Jul 2015 18:20:31 -0000

>>    Such caching is write through in that modification to xattrs is
>>    always done by means of requests to the server and should not be
>>    only done locally. Due to the relative infrequency of xattr
>>    updates, it is suggested that all changes be propagated
>>    synchronously. The client MUST NOT maintain a cache of modified
>>    xattrs.
>>
>> What's the rationale for that MUST NOT?

> Same as the one for all other attributes (except size, time_modify,
change): see https://tools.ietf.org/html/rfc5661#section-10.6

The text in question reads as follows:

Other than those three attributes, the client MUST NOT maintain a
cache of modified attributes. Instead, attribute changes are
immediately sent to the server.


When those two sentences are read together, it seems to me that the
intention is/was to forbid writeback caching of attributes. With just the
first of them present, it might lead someone to suppose that a writethrough
cache of modified attributes is to be forbidden as well. I don't think that
is the intention.



On Fri, Jul 31, 2015 at 11:22 AM, Manoj Naik <mnaik@us.ibm.com> wrote:

>
> "nfsv4" <nfsv4-bounces@ietf.org> wrote on 07/23/2015 11:45:47 AM:
>
> > From: "J. Bruce Fields" <bfields@fieldses.org>
> > To: David Noveck <davenoveck@gmail.com>
> > Cc: Christoph Hellwig <hch@lst.de>, "nfsv4@ietf.org" <nfsv4@ietf.org>
> > Date: 07/23/2015 11:46 AM
> > Subject: Re: [nfsv4] follow-up of xattr discussion
> > Sent by: "nfsv4" <nfsv4-bounces@ietf.org>
> >
> > On Thu, Jul 23, 2015 at 01:15:22PM -0400, David Noveck wrote:
> > > which sound to me like such uses for not allowed.  I'll be reviewing
> > > this document in a bit and will propose some toughening up of the
> > > language.
> >
> > One of the practical difference is the caching.  A lot of the
> > filesystem-specific attributes look incompatible with client caching.
> >
> > Looking at the "caching" section: it does say clients may cache reads,
> > and that the change attribute can be depended on to validate that cache,
> > but:
> >
> >    https://tools.ietf.org/html/draft-naik-nfsv4-xattrs-02#section-6.2.2
> >
> >    Such caching is write through in that modification to xattrs is
> >    always done by means of requests to the server and should not be
> >    only done locally. Due to the relative infrequency of xattr
> >    updates, it is suggested that all changes be propagated
> >    synchronously. The client MUST NOT maintain a cache of modified
> >    xattrs.
> >
> > What's the rationale for that MUST NOT?
>
> Same as the one for all other attributes (except size, time_modify,
> change): see https://tools.ietf.org/html/rfc5661#section-10.6
>
> Manoj.
>
> >
> > --b.
> >
> > _______________________________________________
> > nfsv4 mailing list
> > nfsv4@ietf.org
> > https://www.ietf.org/mailman/listinfo/nfsv4
> >
>
>