Linux NFS development
 help / color / mirror / Atom feed
From: "Chuck Lever" <cel@kernel.org>
To: "Tom Rini" <trini@konsulko.com>
Cc: NeilBrown <neil@brown.name>, "Jörg Sommer" <joerg@jo-so.de>,
	"Jeff Layton" <jlayton@kernel.org>,
	"Olga Kornievskaia" <okorniev@redhat.com>,
	"Dai Ngo" <dai.ngo@oracle.com>, "Tom Talpey" <tom@talpey.com>,
	linux-nfs@vger.kernel.org, "Chuck Lever" <chuck.lever@oracle.com>
Subject: Re: [PATCH 2/2] NFS: NFSERR_INVAL is not defined by NFSv2
Date: Fri, 28 Aug 2026 18:04:39 -0400	[thread overview]
Message-ID: <a832bec6-fdcf-4405-b8ed-87418bc704cf@app.fastmail.com> (raw)
In-Reply-To: <20260828211855.GL3959812@bill-the-cat>



On Fri, Aug 28, 2026, at 5:18 PM, Tom Rini wrote:
> On Fri, Aug 28, 2026 at 05:06:14PM -0400, Chuck Lever wrote:
>> 
>> 
>> On Fri, Aug 28, 2026, at 4:51 PM, Tom Rini wrote:
>> > On Fri, Aug 28, 2026 at 09:27:41AM -0400, Chuck Lever wrote:
>> >> 
>> >> 
>> >> On Fri, Aug 28, 2026, at 7:33 AM, NeilBrown wrote:

>> >> > U-boot has
>> >> >
>> >> > 		} else if ((rlen == -NFSERR_ISDIR) || (rlen == -NFSERR_INVAL)) {
>> >> > 			/* symbolic link */
>> >> > 			nfs_state = STATE_READLINK_REQ;
>> >> > 			nfs_send();
>> >> >

>> The "deployments can't be updated" also doesn't make sense: if
>> they can't be updated, they won't be able to get the revert
>> either.
>
> By deployments I mean U-Boot deployments. It's notoriously hard to
> update firmwares most of the time. Some testing labs refuse to because
> of the value in testing the firmware most people likely have deployed
> rather than the latest and greatest. So most of the time, it's never
> updated. Can newer systems take advantage of good and specification
> following update mechanisms? Sure. In practice? Only maybe.

I'm talking about changing NFSD to return NFSERR_ISDIR, which would
be picked up by the first "if" check above, which already exists
in U-Boot.

That addresses the regression and can be backported into the LTS
Linux kernels that have commit 0ac903d1bfdc [*]. It does not depend
on making changes to U-Boot.

Since the problem was reported on linux-nfs and refers to a
specific Linux kernel commit hash, I assumed the only thing on
the table is a code change in NFSD.


-- 
Chuck Lever

[*] AFAICT, the only two LTS kernels that are affected are v6.12
    and v6.18. The stable kernels (v7.1 and v7.2) would also be
    impacted.

  reply	other threads:[~2026-08-28 22:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-10  0:28 [PATCH 0/2] Address minor issues with status codes Chuck Lever
2025-12-10  0:28 ` [PATCH 1/2] NFSD: Remove NFSERR_EAGAIN Chuck Lever
2025-12-10  0:28 ` [PATCH 2/2] NFS: NFSERR_INVAL is not defined by NFSv2 Chuck Lever
2026-08-28  8:48   ` Jörg Sommer
2026-08-28 11:33     ` NeilBrown
2026-08-28 11:59       ` Jörg Sommer
2026-08-28 13:27       ` Chuck Lever
2026-08-28 20:51         ` Tom Rini
2026-08-28 21:06           ` Chuck Lever
2026-08-28 21:18             ` Tom Rini
2026-08-28 22:04               ` Chuck Lever [this message]
2026-08-28 22:12                 ` Tom Rini
2026-08-28 22:36                 ` NeilBrown
2026-08-28 23:14                   ` Chuck Lever
2025-12-10  0:49 ` [PATCH 0/2] Address minor issues with status codes Jeff Layton
2025-12-10  1:01   ` NeilBrown

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=a832bec6-fdcf-4405-b8ed-87418bc704cf@app.fastmail.com \
    --to=cel@kernel.org \
    --cc=chuck.lever@oracle.com \
    --cc=dai.ngo@oracle.com \
    --cc=jlayton@kernel.org \
    --cc=joerg@jo-so.de \
    --cc=linux-nfs@vger.kernel.org \
    --cc=neil@brown.name \
    --cc=okorniev@redhat.com \
    --cc=tom@talpey.com \
    --cc=trini@konsulko.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