Re: [nfsv4] xattr model in draft-naik-nfsv4-xattrs-01?

Manoj Naik <mnaik@us.ibm.com> Mon, 06 October 2014 21:17 UTC

Return-Path: <mnaik@us.ibm.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 DE6DD1A8A25 for <nfsv4@ietfa.amsl.com>; Mon, 6 Oct 2014 14:17:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.686
X-Spam-Level:
X-Spam-Status: No, score=-7.686 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.786, 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 gjhViIVWi22s for <nfsv4@ietfa.amsl.com>; Mon, 6 Oct 2014 14:17:17 -0700 (PDT)
Received: from e9.ny.us.ibm.com (e9.ny.us.ibm.com [32.97.182.139]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CE5A11A8A28 for <nfsv4@ietf.org>; Mon, 6 Oct 2014 14:17:16 -0700 (PDT)
Received: from /spool/local by e9.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <nfsv4@ietf.org> from <mnaik@us.ibm.com>; Mon, 6 Oct 2014 17:17:15 -0400
Received: from d01dlp03.pok.ibm.com (9.56.250.168) by e9.ny.us.ibm.com (192.168.1.109) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 6 Oct 2014 17:17:14 -0400
Received: from b01cxnp23034.gho.pok.ibm.com (b01cxnp23034.gho.pok.ibm.com [9.57.198.29]) by d01dlp03.pok.ibm.com (Postfix) with ESMTP id DF0A5C90042 for <nfsv4@ietf.org>; Mon, 6 Oct 2014 17:05:57 -0400 (EDT)
Received: from d01av05.pok.ibm.com (d01av05.pok.ibm.com [9.56.224.195]) by b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id s96LH5nM2884010 for <nfsv4@ietf.org>; Mon, 6 Oct 2014 21:17:13 GMT
Received: from d01av05.pok.ibm.com (localhost [127.0.0.1]) by d01av05.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s96LGfaS023894 for <nfsv4@ietf.org>; Mon, 6 Oct 2014 17:16:41 -0400
Received: from d01ml605.pok.ibm.com (d01ml605.pok.ibm.com [9.63.8.148]) by d01av05.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id s96LGfvw023401 for <nfsv4@ietf.org>; Mon, 6 Oct 2014 17:16:41 -0400
In-Reply-To: <20141006050648.GF14969@localhost>
References: <20141004161750.GA22828@lst.de> <OF88F663C8.C237679D-ON88257D67.006E4B58-88257D67.0070FBCC@us.ibm.com> <20141005072228.GA6312@lst.de> <20141006050648.GF14969@localhost>
X-KeepSent: 7F0B1DC3:C317F93F-88257D69:007432B1; type=4; name=$KeepSent
To: Nico Williams <nico@cryptonector.com>
X-Mailer: IBM Notes Release 9.0.1FP2 August 03, 2014
Message-ID: <OF7F0B1DC3.C317F93F-ON88257D69.007432B1-88257D69.0074D944@us.ibm.com>
From: Manoj Naik <mnaik@us.ibm.com>
Date: Mon, 06 Oct 2014 14:16:18 -0700
X-MIMETrack: Serialize by Router on D01ML605/01/M/IBM(Release 9.0.1FP1|April 03, 2014) at 10/06/2014 05:16:40 PM
MIME-Version: 1.0
Content-type: multipart/alternative; Boundary="0__=07BBF7FADFE7B4218f9e8a93df938690918c07BBF7FADFE7B421"
Content-Disposition: inline
X-TM-AS-MML: disable
X-Content-Scanned: Fidelis XPS MAILER
x-cbid: 14100621-7182-0000-0000-000000A3A0C1
Archived-At: http://mailarchive.ietf.org/arch/msg/nfsv4/gf0WIDBiO8G37Snv-0L6Uwzvpng
Cc: Christoph Hellwig <hch@lst.de>, nfsv4@ietf.org
Subject: Re: [nfsv4] xattr model in draft-naik-nfsv4-xattrs-01?
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: <http://www.ietf.org/mail-archive/web/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: Mon, 06 Oct 2014 21:17:20 -0000

Nico Williams <nico@cryptonector.com> wrote on 10/05/2014 10:06:49 PM:

> From: Nico Williams <nico@cryptonector.com>
> To: Christoph Hellwig <hch@lst.de>
> Cc: Manoj Naik/Almaden/IBM@IBMUS, nfsv4@ietf.org
> Date: 10/05/2014 10:06 PM
> Subject: Re: [nfsv4] xattr model in draft-naik-nfsv4-xattrs-01?
>
>
> IMO:
>
>  - for listing attributes the READDIR model should be followed (a
>    pageable list+get operation)

OK, we've been trying to avoid this at least for the first couple of draft
revisions. The current draft (Section 5.2.1) states:

                      In addition, the total size of xattrs exchanged
   between the client and server for get/set operations is limited by
   the channel's negotiated maximum size for requests and responses.

Granted, we probably need to revisit this. Requiring a single xattr get/set
to fit in a single COMPOUND makes the specification much simpler. (This
also seems to be the implicit requirement for other file attributes like
ACLs). Perhaps we can (should?) allow list/getall/setall to follow the
READDIR model.

>
>  - adding new filesystem-relatedsystem calls and [NFS, ...] protocol
>    functionality is a catch-22 kind of deal, and if we always require
>    the other to be present first then the one can't ever happen;
>
>    I'm inclined to say that a get/setallxattrs() should be supported,
>    BUT:
>
>     - it must be clear that it won't be atomic because it can't be
>       atomic

This is documented in the draft (Section 5.3.3.3):

   While the SETXATTR request MAY contain multiple attribute keys and/or
   values to be changed for a file, this does not impose any atomicity
   considerations on the server implementation. If the server cannot
   update all the attributes for the file atomically, it MUST set them
   in the order specified.

I'll make sure this is added for the GETXATTR section as well.

Manoj.

>
>     - because it has to be pageable (and the protocol in general doesn't
>       support atomicity in such cases)
>
> Nico
> --
>