Re: [nfsv4] Can NFSv4.2 operations be optional on a per server file system basis?

David Noveck <davenoveck@gmail.com> Thu, 21 October 2021 05:02 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 8CF723A13B4 for <nfsv4@ietfa.amsl.com>; Wed, 20 Oct 2021 22:02:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 vKnAT_PonQK3 for <nfsv4@ietfa.amsl.com>; Wed, 20 Oct 2021 22:02:23 -0700 (PDT)
Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) (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 756643A13B3 for <nfsv4@ietf.org>; Wed, 20 Oct 2021 22:02:23 -0700 (PDT)
Received: by mail-ed1-x52b.google.com with SMTP id w19so456277edd.2 for <nfsv4@ietf.org>; Wed, 20 Oct 2021 22:02:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3tjoik0sy7SukQcAusRKeG6UMi4UKn/6PDDFk8Lpphc=; b=FeJO/nMGYacBNjAaKIwSVaRz4XPkpS8c3FlgHFQgVQbk4s6nKL/VMuW9D2AkFrGpo8 6iSL8m4zSP2eloKWO3If969ycfX7+RdyTNnHJrPaJGV7TvsQSiZvYWm8mKnYmMKLbBV5 UuHzOeHknPRT8r43NFjrHrIdTHpgbU7hFmWMZCN7BZYWv/03eJAglziFn1MWANC/eeKf qt6K+H7hI3N5bO1phYEkUeIZERe1oEFdo+q8xT+hYq6QvhKdwNXxPBOnTH7ev+e71fQc AUCsdbVi1StEoTtJ7O2gRR3WtsJaauquSY2EtSSyinc2FjMEXnHsML5IYOahSQaiB1/a UqvQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3tjoik0sy7SukQcAusRKeG6UMi4UKn/6PDDFk8Lpphc=; b=KvC9aLqnp347B6KOyCLym1sSZQyhzljA/Kq9+YLzg+Vf4NZNv57EKitwh/dWbDS86S X1fLuveVj09cdW90ZDv6wi+lF7/XDOlcRQGr2N6DvPXs9s96egO71OSPlQac9tQsam8N QIgNf2CoMXktnAHsxR8rRRCsxDqEh/pY1BuSrvYE4SzCjwAvCF7f2qKmbz45sjqx8a2s UJQ8hhv8jHrieKAC5Ecm9WwyXTO0RI4IjBZRGe7GylYHldd9Hu/Un825wTwablxfjfQP +SCTXTdG1zeivu8P9DKifahtHkxXSFKxv5vDwhgVoteE9XqqTFxAoM6Md0vQ3+LK6h3f U0zA==
X-Gm-Message-State: AOAM532+LUHp9AHmn1P4ZkCW2hXOrCngadYSn/hQccbfV/cHnNpo9ew2 y5R9sMs9rIv9Akp4dADeomMXIyNboCbtEmDGEqs=
X-Google-Smtp-Source: ABdhPJzV6+t8VwzRoZpQ+LNAF5V8ffR3anwUTt4Wb1rtnm4aZKOGUk0gFw1ktUGN20o+NnvR8SJ5a/OhW5SreWO97gU=
X-Received: by 2002:a17:906:520b:: with SMTP id g11mr4603483ejm.502.1634792541086; Wed, 20 Oct 2021 22:02:21 -0700 (PDT)
MIME-Version: 1.0
References: <YQXPR0101MB0968D58C78D6E9ACBF7B8A3FDDB49@YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM> <683B4D58-BFDF-465D-9E77-607819354EAA@gmail.com> <YQXPR0101MB0968AE1F6DD2D47EC458B7D7DDB49@YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM> <CADaq8jcN5tv7RMOY=_1BktUsWkqEmUy-w2aygiURBNZC9LBPDQ@mail.gmail.com> <YQXPR0101MB09684B8F12901E7B0A796A97DDB99@YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM> <20211019180511.GA18024@fieldses.org> <YQXPR0101MB0968B884DF6F28FFB3B5DCA2DDBE9@YQXPR0101MB0968.CANPRD01.PROD.OUTLOOK.COM> <E121A27A-7D25-4E86-B079-9FD4DE2BEEFA@gmail.com> <20211021021834.GB11612@fieldses.org>
In-Reply-To: <20211021021834.GB11612@fieldses.org>
From: David Noveck <davenoveck@gmail.com>
Date: Thu, 21 Oct 2021 01:02:12 -0400
Message-ID: <CADaq8jd-YHPK400UnPPUyBB8mV-pVUJgC4yTwZu90Qmauxh9aQ@mail.gmail.com>
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Thomas Haynes <loghyr@gmail.com>, Rick Macklem <rmacklem@uoguelph.ca>, NFSv4 <nfsv4@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000b1686705ced5cc64"
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/vY8b_UywR7WIbupugkcgUH5z9vo>
Subject: Re: [nfsv4] Can NFSv4.2 operations be optional on a per server file system basis?
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 21 Oct 2021 05:02:30 -0000

Section 15.1.1.5 is a problem, although, as Bruce points out, it may not be
problem returning NOTSUPP in practice.

I'm thinking about updating this definition in rfc5661bis-03 together with
dealing with a bunch of the remaining erratta reports and a few updates to
the security discussion to respond to the changes in security-03.
I would submit this right after security-03, even though the big split up
of the bis is still a ways in the future.

 I think we can spend a few minutes discussing this at the meeting next week



On Wed, Oct 20, 2021, 10:18 PM J. Bruce Fields <bfields@fieldses.org> wrote:

> On Wed, Oct 20, 2021 at 06:50:29PM -0700, Thomas Haynes wrote:
> > Honestly I went with what I *thought* I intended. The best supporting
> > evidence is here:
> >
> > 15.1.1.5.  NFS4ERR_NOTSUPP (Error Code 10004)
> >
> >    Operation not supported, either because the operation is an
> >    OPTIONAL one and is not supported by this server or because the
> >    operation MUST NOT be implemented in the current minor version.
> >
> > Which implies that the if OPTIONAL the operation is either entirely
> > supported by the server or not.
> >
> > What is a client supposed to do if it tries ALLOCATE and the server
> > accepts it -- it tries again and the server replies NFS4ERR_NOTSUPP.
>
> Return 0 to the application in the first case, and ENOTSUP in the
> second?  Is that a problem?
>
> > Is the support based on time of day? Did something change on the
> > server?
> >
> > You and I may know it is by filesystem, by how is that exposed to the
> > client?
>
> Unless the client's trying to do some optimization, as in Rick's case,
> it doesn't sound likely to cause a problem.
>
> I could see how EINVAL could cause practical problems, though.  E.g. an
> application probably knows how to handle NOTSUPP--it can fall back on
> writing zeroes, or something.  EINVAL, though, sounds like something's
> just broken, and it's not clear how to recover.
>
> Ditto a tar application getting NOTSUPP on getxattr.
>
> You're probably right on the letter of the spec.
>
> But we definitely need a way to indicate these features aren't supported
> on a per-filesystem basis, and it sounds like NFS4ERR_NOTSUPP is likely
> to work in practice, so maybe just going with that is the least bad
> option....
>
> --b.
>
> _______________________________________________
> nfsv4 mailing list
> nfsv4@ietf.org
> https://www.ietf.org/mailman/listinfo/nfsv4
>