From: Chuck Lever <cel@kernel.org>
To: Jeff Layton <jlayton@kernel.org>, NeilBrown <neil@brown.name>,
Olga Kornievskaia <okorniev@redhat.com>,
Dai Ngo <dai.ngo@oracle.com>, Tom Talpey <tom@talpey.com>
Cc: linux-nfs@vger.kernel.org, Chuck Lever <chuck.lever@oracle.com>,
Roland Mainz <roland.mainz@nrubsig.org>,
Christoph Hellwig <hch@infradead.org>,
stable@vger.kernel.org
Subject: Re: [PATCH v3] NFSD: Implement FATTR4_CLONE_BLKSIZE attribute
Date: Wed, 7 May 2025 13:41:17 -0400 [thread overview]
Message-ID: <974a6289-802d-4cd8-b67c-26584af89810@kernel.org> (raw)
In-Reply-To: <b73ee4d1184e91b540edaeb22d939fea852d482e.camel@kernel.org>
On 5/7/25 11:34 AM, Jeff Layton wrote:
> On Wed, 2025-05-07 at 10:45 -0400, cel@kernel.org wrote:
>> From: Chuck Lever <chuck.lever@oracle.com>
>>
>> RFC 7862 states that if an NFS server implements a CLONE operation,
>> it MUST also implement FATTR4_CLONE_BLKSIZE. NFSD implements CLONE,
>> but does not implement FATTR4_CLONE_BLKSIZE.
>>
>> Note that in Section 12.2, RFC 7862 claims that
>> FATTR4_CLONE_BLKSIZE is RECOMMENDED, not REQUIRED. Likely this is
>> because a minor version is not permitted to add a REQUIRED
>> attribute. Confusing.
>
> Isn't CLONE itself an optional operation? It wouldn't make sense to
> REQUIRE this attribute on servers that don't support CLONE, so I think
> it makes sense that it should be optional. Anyway, I'm just being
> pedantic.
My take:
It's problematic that one part of the specification states that
FATTR4_CLONE_BLKSIZE is mandatory-to-implement (with a MUST), and
another categorizes the attribute as RECOMMENDED.
I understand the reasons why this might be necessary, but IMO
implementers who do not read the whole document might see one or the
other of these (because they are in widely separated sections) and then
do the wrong thing.
Section 12.2 needs to provide an explicit explanation to make it clear.
--
Chuck Lever
prev parent reply other threads:[~2025-05-07 17:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-07 14:45 [PATCH v3] NFSD: Implement FATTR4_CLONE_BLKSIZE attribute cel
2025-05-07 15:34 ` Jeff Layton
2025-05-07 17:41 ` Chuck Lever [this message]
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=974a6289-802d-4cd8-b67c-26584af89810@kernel.org \
--to=cel@kernel.org \
--cc=chuck.lever@oracle.com \
--cc=dai.ngo@oracle.com \
--cc=hch@infradead.org \
--cc=jlayton@kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=neil@brown.name \
--cc=okorniev@redhat.com \
--cc=roland.mainz@nrubsig.org \
--cc=stable@vger.kernel.org \
--cc=tom@talpey.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