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

David Noveck <davenoveck@gmail.com> Sun, 21 May 2017 19:26 UTC

Return-Path: <davenoveck@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 58905129436 for <nfsv4@ietfa.amsl.com>; Sun, 21 May 2017 12:26:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.299
X-Spam-Level:
X-Spam-Status: No, score=-1.299 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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 h1RjPT7DKT7I for <nfsv4@ietfa.amsl.com>; Sun, 21 May 2017 12:26:54 -0700 (PDT)
Received: from mail-io0-x229.google.com (mail-io0-x229.google.com [IPv6:2607:f8b0:4001:c06::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 4BBCC128DF3 for <nfsv4@ietf.org>; Sun, 21 May 2017 12:26:54 -0700 (PDT)
Received: by mail-io0-x229.google.com with SMTP id o12so70658752iod.3 for <nfsv4@ietf.org>; Sun, 21 May 2017 12:26:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=U22Ta+ca+AmFA0lJbndab6fUv7d0Q0xzP/HkzCydGJU=; b=PqGJ15ro5yJYQnR5qm9dJ38WFNA/XnONcnPqum67Qfivn6NhmviVLbNWyvfcSxGJaA bgezzLnZPLeJtB/cJ/ZgzN4Mfag7P+KpioCTe2tq/EH7XXHVE/APfjAHGs+u27GqWg5D 9Xr2f3IjW2GXhNPHuOrwQt0csjZdk2jIIONtNApnF2YdvK0zXp5ILpBR+Mmxh4G7jprA U9ZIq5C9dBOoHxCL+6f8RkV/LZhI+/oKbeAepa8pD7XWj7staya23sIaAQvdR84Ej9R4 A5G/eDQFpYiO4k98epUsCOEIe0ZUnre6jRNIDdx8g1xUi4cnoEaubycq8lqWsiCWuQ0W XHKw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=U22Ta+ca+AmFA0lJbndab6fUv7d0Q0xzP/HkzCydGJU=; b=Fb2XNmn4O996zc36DmmfXLPFICMvZGrqkgoYRoy/ORLOBxKe6V0WHVAUNuC+dg+qW2 +l8KJ/W5G2Rz8E7iE3gJGyFxPBLpayY0TnKdLEOYwhzcY23BHHONI98NWJWsgKJg914d 8KbwRjGDVg2TNlI81KSedMx+EdafH71kk/wN7QGkrsAABXS/qonkDGlJKeya6GQE7+ID /R3sOik8voQKL6sBzvi9l8VGDXiYI7ZvETp9au1LmltQZnK5eaD8nmryo682dhV7ay9C Aj982QbyTtJQ9L5qMvzXeDKZ5XGhaT+uuZG6pJVq74JS3ZGtcA2Z4T96EmkG6rvqqUgR Xu6Q==
X-Gm-Message-State: AODbwcAsndIf2ZL0SS4z6y5pINqXo35Mxv3T1iw6qYvwVlSXR84JrpAi +Lg0E5iYEvD/zYtaEOENVtcTZt7XdQ==
X-Received: by 10.107.6.69 with SMTP id 66mr18879710iog.163.1495394813526; Sun, 21 May 2017 12:26:53 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.107.4.148 with HTTP; Sun, 21 May 2017 12:26:53 -0700 (PDT)
In-Reply-To: <03970226-9CF0-4493-9408-F7CBC19F3919@gmail.com>
References: <03970226-9CF0-4493-9408-F7CBC19F3919@gmail.com>
From: David Noveck <davenoveck@gmail.com>
Date: Sun, 21 May 2017 15:26:53 -0400
Message-ID: <CADaq8jdttJ=2Ej-vsi6go2puPec5=pyf5aC60URaEgFzOA=daA@mail.gmail.com>
To: Vitaliy Gusev <gusev.vitaliy@gmail.com>
Cc: "nfsv4@ietf.org" <nfsv4@ietf.org>
Content-Type: multipart/alternative; boundary="001a113edff8a8cd6205500dbc64"
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/S2rSFx-wXg_dnPbwa4nPm_p3618>
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 19:26:56 -0000

> Do I miss something or RFC 7530 and RFC 5661 don’t have full set of
available attributes
> for an absent filesystem that can be got in READDIR operation?

These documents do not specify a full list of available attributes for
absent file systems.  The idea is that what attributes might or might not
be available is up to the server-side file system code. The general
expectation is that very little will be available.

In the case in which you are doing a READDIR within the absent file system,
 no attributes can be provided, since the operation is to be failed with
NFS4ERR_MOVED.

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).

On May 20, 2017 3:58 PM, "Vitaliy Gusev" <gusev.vitaliy@gmail.com> wrote:

> Hi!
>
> During improving NFS v4 illumos server for READDIR operation I got question
> about availability of attributes for READDIR in case of an absent
> filesystem.
>
> RFC 7530 Section 8.3.2 “READDIR and Absent File Systems*”* says only
> about:
>
>    - fs_locations
>    -
>
>    rdattr_error
>
>
> and doesn’t specify other available attributes.
>
> Section 8.3.1 specifies attributes for an absent filesystem but only for
> GETATTR operation:
>
>    -
>
>    fs_locations
>
>    - fsid
>    -
>
>    mounted_on_fileid
>
>
>
> Do I miss something or RFC 7530 and RFC 5661 don’t have full set of
> available attributes
> for an absent filesystem that can be got in READDIR operation?
>
> ———
> Thanks,
> Vitaliy Gusev
>
>
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4
>
>