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

Nico Williams <nico@cryptonector.com> Mon, 06 October 2014 05:06 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 D948C1A1B2F for <nfsv4@ietfa.amsl.com>; Sun, 5 Oct 2014 22:06:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.266
X-Spam-Level:
X-Spam-Status: No, score=-0.266 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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 mVzefme34Hfx for <nfsv4@ietfa.amsl.com>; Sun, 5 Oct 2014 22:06:51 -0700 (PDT)
Received: from homiemail-a87.g.dreamhost.com (sub4.mail.dreamhost.com [69.163.253.135]) by ietfa.amsl.com (Postfix) with ESMTP id 114B01A1B28 for <nfsv4@ietf.org>; Sun, 5 Oct 2014 22:06:50 -0700 (PDT)
Received: from homiemail-a87.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a87.g.dreamhost.com (Postfix) with ESMTP id 90B2426C063; Sun, 5 Oct 2014 22:06:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=cryptonector.com; bh=+GSLgT9bkIvpup DbUjtdKQCsrFM=; b=QfL/7rs2YgYbGWMxi4bhPzFLe6Vfmrb33OPyxD8UFUBaSy 9ucVwbiBQVJXGj4zffEVOPnOpSocQVIDwlswFecr9auz9XnhShTm8ViUmcuEP6lB HXssgqHsnNtJgQmOTvbblm5+PTGqC/g+Lm/+zqqvfSy2VxmQGNqLtflG/kO3E=
Received: from localhost (108-207-244-174.lightspeed.austtx.sbcglobal.net [108.207.244.174]) (Authenticated sender: nico@cryptonector.com) by homiemail-a87.g.dreamhost.com (Postfix) with ESMTPA id 381F726C05B; Sun, 5 Oct 2014 22:06:50 -0700 (PDT)
Date: Mon, 06 Oct 2014 00:06:49 -0500
From: Nico Williams <nico@cryptonector.com>
To: Christoph Hellwig <hch@lst.de>
Message-ID: <20141006050648.GF14969@localhost>
References: <20141004161750.GA22828@lst.de> <OF88F663C8.C237679D-ON88257D67.006E4B58-88257D67.0070FBCC@us.ibm.com> <20141005072228.GA6312@lst.de>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <20141005072228.GA6312@lst.de>
User-Agent: Mutt/1.5.21 (2010-09-15)
Archived-At: http://mailarchive.ietf.org/arch/msg/nfsv4/i-ns_ld3hQqAJxwZv5KAAwzZTW4
Cc: 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 05:06:53 -0000

IMO:

 - for listing attributes the READDIR model should be followed (a
   pageable list+get operation)

 - 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

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

Nico
--