From: Jeff Layton <jlayton@kernel.org>
To: Takeshi Nishimura <takeshi.nishimura.linux@gmail.com>,
Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Subject: Re: BUG: Linux 6.12 nfsd does not support FATTR4_WORD2_CHANGE_ATTR_TYPE in NFSv4.2 mode!!
Date: Mon, 13 Jan 2025 07:34:38 -0500 [thread overview]
Message-ID: <24b8d3ccd164d971f15d8a0d6ac8df0976b4bb21.camel@kernel.org> (raw)
In-Reply-To: <CALWcw=GGunhwiuGJpA0HarYNiWCAtx8ku-TVZM8jgfDfwaiwcA@mail.gmail.com>
On Mon, 2025-01-13 at 05:06 +0100, Takeshi Nishimura wrote:
> On Sat, Jan 11, 2025 at 10:17 PM Rick Macklem <rick.macklem@gmail.com> wrote:
> >
> > On Sat, Jan 11, 2025 at 12:08 PM Takeshi Nishimura
> > <takeshi.nishimura.linux@gmail.com> wrote:
> > >
> > > Dear list,
> > >
> > > We tried to use FATTR4_WORD2_CHANGE_ATTR_TYPE with Linux 6.12 nfsd,
> > > but the server does not set that attribute, while it is mandatory for
> > > NFSv4.2.
> > My understand is that nothing is mandatory in NFSv4.2. Everything is considered
> > optional extensions. I doubt any extant 4.2 server supports all of the optional
> > extensions in NFSv4.2.
>
> That can't be true, or would be a bug in the NFSv4.2 spec then.
> "Everything optional" means feature support gets fragmented, and
> interoperability will cease to exist.
Not true. NFSv4.2 is composed entirely of optional features. It's
totally legitimate for an endpoint to just report that it supports
minorversion 2, and do nothing else, and it's now compliant.
For this attr, it's even written in the spec!
12.1. New RECOMMENDED Attributes - List and Definition References
That said, I'd be happy to help review patches that add this, but I'd
take a look 1631087ba8727db03c0ab2815dc06dc25d962b80 where we reverted
this before.
If the server experiences a clock jump backward, then you could end up
with a duplicate change attribute for a different file state. There is
some question about whether that means that we can't claim that the
attr is MONOTONIC.
--
Jeff Layton <jlayton@kernel.org>
next prev parent reply other threads:[~2025-01-13 12:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-11 20:08 BUG: Linux 6.12 nfsd does not support FATTR4_WORD2_CHANGE_ATTR_TYPE in NFSv4.2 mode!! Takeshi Nishimura
2025-01-11 21:17 ` Rick Macklem
2025-01-13 4:06 ` Takeshi Nishimura
2025-01-13 12:34 ` Jeff Layton [this message]
2025-01-13 13:54 ` Chuck Lever
2025-01-13 12:27 ` Jeff Layton
2025-01-12 18:30 ` Chuck Lever
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=24b8d3ccd164d971f15d8a0d6ac8df0976b4bb21.camel@kernel.org \
--to=jlayton@kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=takeshi.nishimura.linux@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox