From: Trond Myklebust <trondmy@hammerspace.com>
To: "linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>,
"chuck.lever@oracle.com" <chuck.lever@oracle.com>
Cc: "fstests@vger.kernel.org" <fstests@vger.kernel.org>
Subject: Re: Is generic/426 failing on NFS for anyone else?
Date: Thu, 25 Aug 2022 18:25:25 +0000 [thread overview]
Message-ID: <54c101358be4693fa8c8593bfddeb40abeb638c5.camel@hammerspace.com> (raw)
In-Reply-To: <0A525E6D-8089-4EF5-8FED-506878FD8817@oracle.com>
On Thu, 2022-08-25 at 17:52 +0000, Chuck Lever III wrote:
> I have started to see this failure with some regularity:
>
> [cel@morisot xfstests]$ sudo ./check -nfs generic/426
> FSTYP -- nfs
> PLATFORM -- Linux/x86_64 morisot 6.0.0-rc1-00001-g2d8cdadac0d6
> #132 SMP PREEMPT Sun Aug 21 19:30:12 EDT 2022
>
> generic/426 2s ... - output mismatch (see
> /home/cel/src/xfstests/results//generic/426.out.bad)
> --- tests/generic/426.out 2018-03-10 11:11:33.483657919 -0500
> +++ /home/cel/src/xfstests/results//generic/426.out.bad 2022-
> 08-25 13:40:01.174779476 -0400
> @@ -1,5 +1,3077 @@
> QA output created by 426
> test_file_handles TEST_DIR/426-dir -d
> test_file_handles TEST_DIR/426-dir
> +open_by_handle(/mnt/426-dir/file000000) returned 116 incorrectly
> on a linked file!
> +open_by_handle(/mnt/426-dir/file000001) returned 116 incorrectly
> on a linked file!
> +open_by_handle(/mnt/426-dir/file000002) returned 116 incorrectly
> on a linked file!
> +open_by_handle(/mnt/426-dir/file000003) returned 116 incorrectly
> on a linked file!
> ...
> (Run 'diff -u /home/cel/src/xfstests/tests/generic/426.out
> /home/cel/src/xfstests/results//generic/426.out.bad' to see the
> entire diff)
> Ran: generic/426
> Failures: generic/426
> Failed 1 of 1 tests
>
> [cel@morisot xfstests]$
>
> 116 is ESTALE.
>
> During this test (on NFSv4.0) the client sends an OPEN(CLAIM_NULL)
> with
> a name of "/" (confirmed via network capture). The Linux NFS server
> rejects this OPEN with NFS4ERR_BADNAME due to a check in
> fs/nfsd/nfs4xdr.c::check_filename().
>
There is no sane way to support open_by_handle() in NFSv4.0, due to the
protocol limitations on OP_OPEN so we should just fix the client to
return ENOTSUP if someone tries.
--
Trond Myklebust
Linux NFS client maintainer, Hammerspace
trond.myklebust@hammerspace.com
prev parent reply other threads:[~2022-08-25 18:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-25 17:52 Is generic/426 failing on NFS for anyone else? Chuck Lever III
2022-08-25 18:25 ` Trond Myklebust [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=54c101358be4693fa8c8593bfddeb40abeb638c5.camel@hammerspace.com \
--to=trondmy@hammerspace.com \
--cc=chuck.lever@oracle.com \
--cc=fstests@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
/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