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

Nico Williams <nico@cryptonector.com> Mon, 06 October 2014 21:22 UTC

Return-Path: <nico@cryptonector.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 A23A01A8A48 for <nfsv4@ietfa.amsl.com>; Mon, 6 Oct 2014 14:22:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.043
X-Spam-Level:
X-Spam-Status: No, score=-1.043 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, IP_NOT_FRIENDLY=0.334, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no
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 mLfanGq8h5WR for <nfsv4@ietfa.amsl.com>; Mon, 6 Oct 2014 14:22:45 -0700 (PDT)
Received: from homiemail-a67.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) by ietfa.amsl.com (Postfix) with ESMTP id C08781A1A19 for <nfsv4@ietf.org>; Mon, 6 Oct 2014 14:22:45 -0700 (PDT)
Received: from homiemail-a67.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a67.g.dreamhost.com (Postfix) with ESMTP id 9CB4D27BC065 for <nfsv4@ietf.org>; Mon, 6 Oct 2014 14:22:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h= mime-version:in-reply-to:references:date:message-id:subject:from :to:cc:content-type; s=cryptonector.com; bh=eQggASOjxQW/JanLXwLk pzKQAAk=; b=ZFVo5i4HNs02xljai6obGM/uU0Dxa0aWOysOm1Gj+wmcbyl6OMl9 1G9ZuoQp93bmtfHC7JRqKx1yz5GSXbL4E8XTlnk0LZuDM7OaCsCeBkjPC5GWEf/h t6vMFuByl0ogh1gB1bwm6ynbwzVqwI4qpu/FW5VLI9C77OTTBbgm6H0=
Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a67.g.dreamhost.com (Postfix) with ESMTPSA id 50C2B27BC064 for <nfsv4@ietf.org>; Mon, 6 Oct 2014 14:22:45 -0700 (PDT)
Received: by mail-wg0-f46.google.com with SMTP id l18so7656564wgh.17 for <nfsv4@ietf.org>; Mon, 06 Oct 2014 14:22:44 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.194.60.5 with SMTP id d5mr4048378wjr.4.1412630564213; Mon, 06 Oct 2014 14:22:44 -0700 (PDT)
Received: by 10.216.32.135 with HTTP; Mon, 6 Oct 2014 14:22:44 -0700 (PDT)
Received: by 10.216.32.135 with HTTP; Mon, 6 Oct 2014 14:22:44 -0700 (PDT)
In-Reply-To: <OF7F0B1DC3.C317F93F-ON88257D69.007432B1-88257D69.0074D944@us.ibm.com>
References: <20141004161750.GA22828@lst.de> <OF88F663C8.C237679D-ON88257D67.006E4B58-88257D67.0070FBCC@us.ibm.com> <20141005072228.GA6312@lst.de> <20141006050648.GF14969@localhost> <OF7F0B1DC3.C317F93F-ON88257D69.007432B1-88257D69.0074D944@us.ibm.com>
Date: Mon, 06 Oct 2014 16:22:44 -0500
Message-ID: <CAK3OfOgAiN=gKFqLYMc1zCeTq2hJ0wCXPwysk9x5fe+XH5r=pQ@mail.gmail.com>
From: Nico Williams <nico@cryptonector.com>
To: Manoj Naik <mnaik@us.ibm.com>
Content-Type: multipart/alternative; boundary="047d7b8736cafa986f0504c7ae40"
Archived-At: http://mailarchive.ietf.org/arch/msg/nfsv4/akFVEbCkOXJ3xUYxEweW1hg2QYI
Cc: NFSv4 <nfsv4@ietf.org>, Christoph Hellwig <hch@lst.de>
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:22:46 -0000

On Oct 6, 2014 4:16 PM, "Manoj Naik" <mnaik@us.ibm.com> wrote:
>
> 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.

Yes, but the implementation also had to be simple.  And feasible.  IMO you
cannot avoid a paging requirement.