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

Manoj Naik <mnaik@us.ibm.com> Mon, 06 October 2014 21:08 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 0F6C81A032C for <nfsv4@ietfa.amsl.com>; Mon, 6 Oct 2014 14:08:58 -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 iRGYa7pzJI3D for <nfsv4@ietfa.amsl.com>; Mon, 6 Oct 2014 14:08:55 -0700 (PDT)
Received: from e39.co.us.ibm.com (e39.co.us.ibm.com [32.97.110.160]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CDCD21A00A3 for <nfsv4@ietf.org>; Mon, 6 Oct 2014 14:08:55 -0700 (PDT)
Received: from /spool/local by e39.co.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 15:08:55 -0600
Received: from d01dlp03.pok.ibm.com (9.56.250.168) by e39.co.us.ibm.com (192.168.1.139) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 6 Oct 2014 15:08:52 -0600
Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com [9.57.198.27]) by d01dlp03.pok.ibm.com (Postfix) with ESMTP id 7E1F6C90046 for <nfsv4@ietf.org>; Mon, 6 Oct 2014 16:57:35 -0400 (EDT)
Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by b01cxnp23032.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id s96L8pnG4063514 for <nfsv4@ietf.org>; Mon, 6 Oct 2014 21:08:51 GMT
Received: from d01av02.pok.ibm.com (localhost [127.0.0.1]) by d01av02.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s96L8p1R031646 for <nfsv4@ietf.org>; Mon, 6 Oct 2014 17:08:51 -0400
Received: from d01ml605.pok.ibm.com (d01ml605.pok.ibm.com [9.63.8.148]) by d01av02.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id s96L8pBe031635 for <nfsv4@ietf.org>; Mon, 6 Oct 2014 17:08:51 -0400
In-Reply-To: <20141005011220.GA29023@fieldses.org>
References: <20141004161750.GA22828@lst.de> <OF88F663C8.C237679D-ON88257D67.006E4B58-88257D67.0070FBCC@us.ibm.com> <20141005011220.GA29023@fieldses.org>
X-KeepSent: 6ABFB530:49DC4461-88257D69:0073DD8C; type=4; name=$KeepSent
To: "J. Bruce Fields" <bfields@fieldses.org>
X-Mailer: IBM Notes Release 9.0.1FP2 August 03, 2014
Message-ID: <OF6ABFB530.49DC4461-ON88257D69.0073DD8C-88257D69.007429B3@us.ibm.com>
From: Manoj Naik <mnaik@us.ibm.com>
Date: Mon, 06 Oct 2014 14:08:49 -0700
X-MIMETrack: Serialize by Router on D01ML605/01/M/IBM(Release 9.0.1FP1|April 03, 2014) at 10/06/2014 05:08:50 PM
MIME-Version: 1.0
Content-type: multipart/alternative; Boundary="0__=07BBF7FADFE05B1C8f9e8a93df938690918c07BBF7FADFE05B1C"
Content-Disposition: inline
X-TM-AS-MML: disable
X-Content-Scanned: Fidelis XPS MAILER
x-cbid: 14100621-9332-0000-0000-000002402304
Archived-At: http://mailarchive.ietf.org/arch/msg/nfsv4/Hq_rs-G5WsnOg2zmmX-6yGVYRvA
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:08:58 -0000

"J. Bruce Fields" <bfields@fieldses.org> wrote on 10/04/2014 06:12:20 PM:

> From: "J. Bruce Fields" <bfields@fieldses.org>
> To: Manoj Naik/Almaden/IBM@IBMUS
> Cc: Christoph Hellwig <hch@lst.de>, nfsv4@ietf.org
> Date: 10/04/2014 06:12 PM
> Subject: Re: [nfsv4] xattr model in draft-naik-nfsv4-xattrs-01?
>
> On Sat, Oct 04, 2014 at 01:34:04PM -0700, Manoj Naik wrote:
> > Christoph Hellwig <hch@lst.de> wrote on 10/04/2014 09:17:50 AM:
> > > On the GETXATTR side you conflate the LISTXATTR operation with
GETXATTR,
> > > as well as adding a new bulk get one that isn't present in any OS API
> > > I know.  Both the argument and return structures are basically
entirely
> > > different for the different cases.
> >
> > Agree that GETXATTR includes what is traditionally provided by
listxattr()
> > call. The idea was to limit the number of new operations provided to
two -
> > GETXATTR and SETXATTR. But if there is consensus, we don't have an
issue
> > with adding a LISTXATTR instead.
> >
> > I think the ability to get/set all xattrs of a given file
> > (getallxattrs/setallxattrs?) is useful, especially for backup/restore
> > programs. Granted that there isn't an OS API that exposes this, but
perhaps
> > there should be one? I know some backup utilities that work directly
with a
> > filesystem API to do this. Especially over NFS, I believe a single RPC
that
> > accomplishes this may be desirable. I know somebody on the list or at
the
> > IETF meeting asked for this specifically too.
>
> What does this allow you to do that you can't do by sending multiple
> RPCs, or a single RPC with multiple getxattr/setxattr ops.

You could certainly do this with multiple ops, but not with a single
COMPOUND. See SETXATTR4_REPLACE_ALL in Section 5.3.3.3.

Manoj.

>
> --b.
>