From: Trond Myklebust <trondmy@primarydata.com>
To: "hch@infradead.org" <hch@infradead.org>,
bcodding redhat <bcodding@redhat.com>
Cc: "fstests@vger.kernel.org" <fstests@vger.kernel.org>,
"Anna.Schumaker@Netapp.com" <Anna.Schumaker@Netapp.com>,
"smayhew@redhat.com" <smayhew@redhat.com>,
"chuck.lever@oracle.com" <chuck.lever@oracle.com>,
"linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH xfstests] generic/035: Override output for NFS testing
Date: Tue, 3 Apr 2018 12:02:21 +0000 [thread overview]
Message-ID: <1522756939.3428.4.camel@primarydata.com> (raw)
In-Reply-To: <20180403094540.GA2254@infradead.org>
On Tue, 2018-04-03 at 02:45 -0700, Christoph Hellwig wrote:
> On Thu, Mar 29, 2018 at 11:34:39AM -0400, Benjamin Coddington wrote:
> > We'd like to run generic tests for NFS, but often have slightly
> > different
> > output for our results. One instance is that for the NFS client
> > the
> > removal of an open file or directory is handled differently than
> > for a
> > local filesystem. We can expect nlink to be 1 for files, and to
> > receive
> > -ESTALE for operations on deleted directories, isn't that silly?
>
> NFS is simply buggy in this case, and we should at least xfail the
> test
> case, not make it look fine.
>
> I'd rather have a file that lists expected fails per file system with
> an
> explanation than a hack like this that papers over the issue.
IIRC that ESTALE test is hitting a protocol issue: NFS doesn't have
stateful readdir() (or any stateful directory operations), and so there
is nothing to tell the server to pin the removed directory while we
have it open in the VFS layer on the client.
I'm fine either way, but if we make the decision to call out protocol
issues as 'expected failure' then we need to make that a consistent
policy for all xfstests.
--
Trond Myklebust
Linux NFS client maintainer, PrimaryData
trond.myklebust@primarydata.com
next prev parent reply other threads:[~2018-04-03 12:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-29 15:34 [PATCH xfstests] generic/035: Override output for NFS testing Benjamin Coddington
2018-03-30 14:41 ` Anna Schumaker
2018-04-03 9:03 ` Eryu Guan
2018-04-03 9:45 ` Christoph Hellwig
2018-04-03 12:02 ` Trond Myklebust [this message]
2018-04-03 12:10 ` Benjamin Coddington
2018-04-03 12:25 ` Christoph Hellwig
2018-04-03 12:36 ` Benjamin Coddington
2018-04-03 14:48 ` J. Bruce Fields
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=1522756939.3428.4.camel@primarydata.com \
--to=trondmy@primarydata.com \
--cc=Anna.Schumaker@Netapp.com \
--cc=bcodding@redhat.com \
--cc=chuck.lever@oracle.com \
--cc=fstests@vger.kernel.org \
--cc=hch@infradead.org \
--cc=linux-nfs@vger.kernel.org \
--cc=smayhew@redhat.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