public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Biggers <ebiggers@kernel.org>
To: David Howells <dhowells@redhat.com>
Cc: Alex Markuze <amarkuze@redhat.com>,
	fstests@vger.kernel.org, ceph-devel@vger.kernel.org,
	linux-fsdevel@vger.kernel.org
Subject: Re: Error in generic/397 test script?
Date: Mon, 20 Jan 2025 09:17:05 -0800	[thread overview]
Message-ID: <20250120171705.GA1159@sol.localdomain> (raw)
In-Reply-To: <1113699.1737376348@warthog.procyon.org.uk>

On Mon, Jan 20, 2025 at 12:32:28PM +0000, David Howells wrote:
> Hi Eric,
> 
> In the generic/397 test script, you placed:
> 
> 	$XFS_IO_PROG -f $SCRATCH_MNT/edir/newfile |& _filter_scratch
> 	$XFS_IO_PROG -f $SCRATCH_MNT/edir/0123456789abcdef |& _filter_scratch
> 
> but neither of those lines actually has a command on it, and when I run it,
> I'm seeing xfs_io hang just waiting endlessly for someone to type commands on
> stdin.
> 
> Would it be better to do:
> 
> 	echo >$SCRATCH_MNT/edir/newfile |& _filter_scratch
> 	echo >$SCRATCH_MNT/edir/0123456789abcdef |& _filter_scratch

Those commands try to create new files and are supposed to fail with ENOKEY
because the directory's encryption key is not present, as is explained in the
comment just above them and can also be seen from 397.out.

First, I'm guessing the context here is that you're testing some (not yet
upstream) kernel patches that introduce a bug where creating these files does
not in fact fail?  That bug will need to be fixed before your patches are
merged, of course.

Second, yes it would be a good idea to replace these with something that don't
hang in the case of a kernel bug that allows the creation of these files.  This
could be done using a shell redirection as you've proposed, but it would have to
go in a subshell for the stderr to be filtered by _filter_scratch.  Feel free to
send a patch after you've fixed that and tested it with upstream.

- Eric

  parent reply	other threads:[~2025-01-20 17:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-20 12:32 Error in generic/397 test script? David Howells
2025-01-20 14:20 ` David Howells
2025-01-20 15:43   ` David Howells
2025-01-20 17:25     ` Eric Biggers
2025-01-20 17:41       ` David Howells
2025-01-20 17:46         ` Eric Biggers
2025-01-20 17:53           ` Eric Biggers
2025-01-20 17:19   ` Eric Biggers
2025-01-20 17:17 ` Eric Biggers [this message]
2025-01-20 17:26   ` David Howells

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=20250120171705.GA1159@sol.localdomain \
    --to=ebiggers@kernel.org \
    --cc=amarkuze@redhat.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=dhowells@redhat.com \
    --cc=fstests@vger.kernel.org \
    --cc=linux-fsdevel@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