Re: [nfsv4] RFC 7530: Available attributes for READDIR and Absent File Systems

Vitaliy Gusev <gusev.vitaliy@gmail.com> Sun, 21 May 2017 23:05 UTC

Return-Path: <gusev.vitaliy@gmail.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 039F6129AC7 for <nfsv4@ietfa.amsl.com>; Sun, 21 May 2017 16:05:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 5qcmv9fq3NV6 for <nfsv4@ietfa.amsl.com>; Sun, 21 May 2017 16:05:38 -0700 (PDT)
Received: from mail-lf0-x229.google.com (mail-lf0-x229.google.com [IPv6:2a00:1450:4010:c07::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 72250129AB7 for <nfsv4@ietf.org>; Sun, 21 May 2017 16:05:38 -0700 (PDT)
Received: by mail-lf0-x229.google.com with SMTP id a5so8595752lfh.2 for <nfsv4@ietf.org>; Sun, 21 May 2017 16:05:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:disposition-notification-to:from:in-reply-to :date:cc:message-id:references:to; bh=Fb2fOQgbsdrQXXdnz/retytOQDkKlTjoAQjhHQ8N+qY=; b=IbtrVRUunF4R+XPKQvjn5IaDMgmEeBZhQMGnyF49j+Ry9lQhJnj2wUlu+cNi8aoU/8 Yhc17qTihO0C9iSmZcBIHffaFelWynvDe2irhn4cAgEE9+OfTZ9ovgJkQeSXmMTBcHgp jj8LV/IMV0ecwMQIoa8EGVRzHH4KyccsLbcPbUBK77cVfCWP+qB3kmSjGtixTrT7Orek UL2/gLF4Z7sSikJupSBdgxsMjj64XWMsVhPCLshiSBIgj8lHpW4YkLktRz1fau34XYD+ siQqFWfUHqtwslFqyk1oJI7TcgdiyoYTgYRgztthftPrunZCifXzxMuI9OEoEXW3mpt0 eJIg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:disposition-notification-to :from:in-reply-to:date:cc:message-id:references:to; bh=Fb2fOQgbsdrQXXdnz/retytOQDkKlTjoAQjhHQ8N+qY=; b=sg4YeNLOOo+b4VDotSy1MJ2VdONe3xwZyBe1jtccU/YXFAH8krVsjbrPOY6nir+haK a3GNvRGSBKv42jqNICX2hxuSnjFfPgDU6JiEFomCmjoktxctaZpCeT2omRB2ZV4xmhYo /XrilUNE3SWOeU66QEqUccHkU2ulK2puevjk4fZinJPy1hJuTkC+HryrVYUUi+l26ADo tBF8D0DmMSVGZEmYlBRWWpvwz1c34wvEvTTYlPf/nW7VG7jWy1PR2H4AXf1vziOmGDtG h0WIAHTDDbUWdJTd4A8oC2NjtM1mE4UQkMuj351Bta+TP/It9zeOuffOvfvm/ho/IRMx eUJQ==
X-Gm-Message-State: AODbwcAbwUIcIOeWjoEA5RjVHhatuN948vgYTHV8PyQgnyrk3ce4G0u4 8ugLHC1M/NYbktY0r78=
X-Received: by 10.25.225.11 with SMTP id y11mr4955174lfg.34.1495407936612; Sun, 21 May 2017 16:05:36 -0700 (PDT)
Received: from [192.168.1.2] ([62.183.125.141]) by smtp.gmail.com with ESMTPSA id 129sm2865754ljf.36.2017.05.21.16.05.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 May 2017 16:05:35 -0700 (PDT)
Content-Type: multipart/alternative; boundary="Apple-Mail=_204F69B4-6FB7-408C-89A5-B58D379E7A36"
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
From: Vitaliy Gusev <gusev.vitaliy@gmail.com>
In-Reply-To: <CADaq8jdttJ=2Ej-vsi6go2puPec5=pyf5aC60URaEgFzOA=daA@mail.gmail.com>
Date: Mon, 22 May 2017 02:05:01 +0300
Cc: "nfsv4@ietf.org" <nfsv4@ietf.org>
Message-Id: <E8E85727-DF56-4BC4-9B1D-8BFC5139B5A1@gmail.com>
References: <03970226-9CF0-4493-9408-F7CBC19F3919@gmail.com> <CADaq8jdttJ=2Ej-vsi6go2puPec5=pyf5aC60URaEgFzOA=daA@mail.gmail.com>
To: David Noveck <davenoveck@gmail.com>
X-Mailer: Apple Mail (2.3273)
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/hACYcwgrE4cDJoKW6lRPVGPNLBM>
X-Mailman-Approved-At: Sun, 21 May 2017 16:12:25 -0700
Subject: Re: [nfsv4] RFC 7530: Available attributes for READDIR and Absent File Systems
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.22
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: <https://mailarchive.ietf.org/arch/browse/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: Sun, 21 May 2017 23:05:40 -0000

> On 21 May 2017, at 22:26, David Noveck <davenoveck@gmail.com> wrote:
> …
> The other relevant case for READDIR is one in which the operation is being done in a directory within a present file system and some of objects within the directory are the roots of absent file systems.  Given that context, the document could have been clearer if it had mentioned fsid and mounted_on_filled which need to be provided  (it is a SHOULD) for GETATTR.  At the time RFC7530 was done we could have made these "SHOULD"s as they are for GETATTR but we didn't do that since this is not a very important case and the client has the option to follow up with GETATTR.
> 
> As it is, the server MAY return these attributes.  If one is doing a server-side implementation, it is best to to provide them since they need to be available for GETATTR.  On the other hand, if one is doing a client-side implementation, you can’t assume they will be present and need to be prepared to follow up with an OTW GETATTR (which has to specify fs_locations to prevent it from being rejected).

So you specify case when server can return READDIR the same or lesser quantity of attributes as GETATTR
returns. This case is reasonable.

But what if list of attributes returned by READDIR for root of absent filesystem is more widely than GETATTR returns?
In other words, can other attributes than fs_locations, fsid, mounted_on_fileid, rdattr_error
be available for a root of absent filesystem in READDIR reply?

———
Thanks,
Vitaliy Gusev