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

"J. Bruce Fields" <bfields@fieldses.org> Mon, 06 October 2014 22:49 UTC

Return-Path: <bfields@fieldses.org>
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 D06BF1A6FDD for <nfsv4@ietfa.amsl.com>; Mon, 6 Oct 2014 15:49:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.686
X-Spam-Level:
X-Spam-Status: No, score=-2.686 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.786] 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 b_koyCZS0sel for <nfsv4@ietfa.amsl.com>; Mon, 6 Oct 2014 15:49:06 -0700 (PDT)
Received: from fieldses.org (fieldses.org [174.143.236.118]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B573E1A6FD7 for <nfsv4@ietf.org>; Mon, 6 Oct 2014 15:49:06 -0700 (PDT)
Received: from bfields by fieldses.org with local (Exim 4.76) (envelope-from <bfields@fieldses.org>) id 1XbH5U-0004OS-6y; Mon, 06 Oct 2014 18:49:04 -0400
Date: Mon, 06 Oct 2014 18:49:04 -0400
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Manoj Naik <mnaik@us.ibm.com>
Message-ID: <20141006224904.GA16720@fieldses.org>
References: <20141004161750.GA22828@lst.de> <OF88F663C8.C237679D-ON88257D67.006E4B58-88257D67.0070FBCC@us.ibm.com> <20141005072228.GA6312@lst.de> <OFE40CB917.BC1F18C3-ON88257D69.0071923E-88257D69.007356B2@us.ibm.com> <20141006212325.GB14926@fieldses.org> <OFD7682759.2B1F9DFC-ON88257D69.007C0F1E-88257D69.007C39B7@us.ibm.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <OFD7682759.2B1F9DFC-ON88257D69.007C0F1E-88257D69.007C39B7@us.ibm.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Archived-At: http://mailarchive.ietf.org/arch/msg/nfsv4/A1NzMud0ZYy9zqlfw-QliyRExYc
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 22:49:08 -0000

On Mon, Oct 06, 2014 at 03:36:53PM -0700, Manoj Naik wrote:
> 
> "J. Bruce Fields" <bfields@fieldses.org> wrote on 10/06/2014 02:23:25 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/06/2014 02:23 PM
> > Subject: Re: [nfsv4] xattr model in draft-naik-nfsv4-xattrs-01?
> >
> > On Mon, Oct 06, 2014 at 01:59:49PM -0700, Manoj Naik wrote:
> > > An operation that replaces ALL the xattr keys of a file with another
> set of
> > > keys could be done in a compound if we added a separate REMOVEXATTR
> that
> > > allowed deleting all the xattrs of a file. Otherwise this would need a
> > > LISTXATTR, delete individual xattrs and SETXATTR each one, and this
> cannot
> > > be achieved in a single COMPOUND.
> >
> > A separate REMOVEXATTR would also make it easier to make it optional.  A
> > server could just not implement the one operation.
> >
> > And easier to remove from the draft when we eventually realize nobody
> > cares about it, hah.
> 
> I am not sure if you meant to say that in jest, but I would think a server
> that implements SETXATTR would implement REMOVEXATTR as well. The latter
> would be the only way to delete xattrs, if we decide to separate it from
> the current SETXATTR.

Oh, sorry.  Looking at the spec....  I assumed you were proposing a
separate op for DELETE_ALL.  Then REPLACE_ALL could be implemented as
DELETE_ALL plus a bunch of sets.

Anyway, clearly I should actually read the latest draft....

--b.