Linux XFS filesystem development
 help / color / mirror / Atom feed
* [PATCH 1/2] xfs/656: rearrange directio pread/pwrite for zoned filesystems
@ 2026-07-02  3:55 Darrick J. Wong
  2026-07-02  3:57 ` [PATCH 2/2] xfs/65[56]: don't unset SCRATCH_RTDEV here Darrick J. Wong
  2026-07-02 10:35 ` [PATCH 1/2] xfs/656: rearrange directio pread/pwrite for zoned filesystems Christoph Hellwig
  0 siblings, 2 replies; 7+ messages in thread
From: Darrick J. Wong @ 2026-07-02  3:55 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: zlang, fstests, linux-xfs

From: Darrick J. Wong <djwong@kernel.org>

On zoned filesystems, a write failure shuts down the filesystem, which
makes this test fail with:

 --- /run/fstests/bin/tests/xfs/656.out	2026-03-13 16:19:08.152939212 -0700
 +++ /run/fstests/logs/xfs/656.out.bad	2026-06-30 18:16:43.847849604 -0700
 @@ -1,10 +1,9 @@
  QA output created by 656
  Format and mount
  pwrite: Input/output error
 -pread: Input/output error
 +stat: Input/output error
  pread: Input/output error
  fsync: Input/output error
  VICTIM pos NUM len NUM: directio_write: Input/output error
 -VICTIM pos NUM len NUM: directio_read: Input/output error
  VICTIM pos NUM len NUM: buffered_read: Input/output error
  VICTIM pos NUM len NUM: buffered_write: Input/output error

Reorder the directio pread and pwrite to avoid this unnecessary failure.
Note that we cycle the mount between the direct and buffered io tests,
which is why we only need to fix the directio test.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
---
 tests/xfs/656     |    2 +-
 tests/xfs/656.out |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/xfs/656 b/tests/xfs/656
index 3a867692502134..df91bbdacea222 100755
--- a/tests/xfs/656
+++ b/tests/xfs/656
@@ -65,8 +65,8 @@ $XFS_IO_PROG -c 'healthmon -c -v' $SCRATCH_MNT >> $tmp.healthmon &
 healer_pid=$!
 sleep 1	# wait for program to start up
 _dmerror_load_error_table
-$XFS_IO_PROG -d -c 'pwrite -b 256k 12k 16k' $testfile >> $seqres.full
 $XFS_IO_PROG -d -c 'pread -b 256k 10g 16k' $testfile >> $seqres.full
+$XFS_IO_PROG -d -c 'pwrite -b 256k 12k 16k' $testfile >> $seqres.full
 _dmerror_load_working_table
 
 _dmerror_unmount
diff --git a/tests/xfs/656.out b/tests/xfs/656.out
index 83b2f5948a772b..4d6633060acdd0 100644
--- a/tests/xfs/656.out
+++ b/tests/xfs/656.out
@@ -1,10 +1,10 @@
 QA output created by 656
 Format and mount
+pread: Input/output error
 pwrite: Input/output error
 pread: Input/output error
-pread: Input/output error
 fsync: Input/output error
-VICTIM pos NUM len NUM: directio_write: Input/output error
 VICTIM pos NUM len NUM: directio_read: Input/output error
+VICTIM pos NUM len NUM: directio_write: Input/output error
 VICTIM pos NUM len NUM: buffered_read: Input/output error
 VICTIM pos NUM len NUM: buffered_write: Input/output error

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH 2/2] xfs/65[56]: don't unset SCRATCH_RTDEV here
  2026-07-02  3:55 [PATCH 1/2] xfs/656: rearrange directio pread/pwrite for zoned filesystems Darrick J. Wong
@ 2026-07-02  3:57 ` Darrick J. Wong
  2026-07-02 10:36   ` Christoph Hellwig
  2026-07-02 10:35 ` [PATCH 1/2] xfs/656: rearrange directio pread/pwrite for zoned filesystems Christoph Hellwig
  1 sibling, 1 reply; 7+ messages in thread
From: Darrick J. Wong @ 2026-07-02  3:57 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: zlang, fstests, linux-xfs

From: Darrick J. Wong <djwong@kernel.org>

Both of these tests claim that they have to unset SCRATCH_RTDEV to avoid
formatting failures due to the rt bitmap consuming all the space in the
"small" data device.  However, the format doesn't constrain the size of
the data device, so the justification doesn't apply.  Remove the whole
thing.

Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
---
 tests/xfs/655 |    4 ----
 tests/xfs/656 |    4 ----
 2 files changed, 8 deletions(-)

diff --git a/tests/xfs/655 b/tests/xfs/655
index a4162d70b321f9..9d09cc00053138 100755
--- a/tests/xfs/655
+++ b/tests/xfs/655
@@ -24,10 +24,6 @@ _require_scratch_nocheck
 _require_scratch_xfs_crc # can't detect minor corruption w/o crc
 _require_xfs_io_command healthmon
 
-# Disable the scratch rt device to avoid test failures relating to the rt
-# bitmap consuming all the free space in our small data device.
-unset SCRATCH_RTDEV
-
 echo "Format and mount"
 _scratch_mkfs -d agcount=1 | _filter_mkfs 2> $tmp.mkfs >> $seqres.full
 . $tmp.mkfs
diff --git a/tests/xfs/656 b/tests/xfs/656
index df91bbdacea222..5d2d2e55c3d21c 100755
--- a/tests/xfs/656
+++ b/tests/xfs/656
@@ -40,10 +40,6 @@ filter_healer_errors() {
 		uniq
 }
 
-# Disable the scratch rt device to avoid test failures relating to the rt
-# bitmap consuming all the free space in our small data device.
-unset SCRATCH_RTDEV
-
 echo "Format and mount"
 _scratch_mkfs > $seqres.full 2>&1
 _dmerror_init no_log

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] xfs/656: rearrange directio pread/pwrite for zoned filesystems
  2026-07-02  3:55 [PATCH 1/2] xfs/656: rearrange directio pread/pwrite for zoned filesystems Darrick J. Wong
  2026-07-02  3:57 ` [PATCH 2/2] xfs/65[56]: don't unset SCRATCH_RTDEV here Darrick J. Wong
@ 2026-07-02 10:35 ` Christoph Hellwig
  2026-07-02 15:23   ` Darrick J. Wong
  2026-07-03  2:21   ` Yao Sang
  1 sibling, 2 replies; 7+ messages in thread
From: Christoph Hellwig @ 2026-07-02 10:35 UTC (permalink / raw)
  To: Darrick J. Wong; +Cc: Christoph Hellwig, zlang, fstests, linux-xfs, Yao Sang

On Wed, Jul 01, 2026 at 08:55:23PM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <djwong@kernel.org>
> 
> On zoned filesystems, a write failure shuts down the filesystem, which
> makes this test fail with:

Looks good an increases the test coverage.  This also makes half of
"common: skip data write EIO survival tests on fatal configs" obsolete.

Darrick, Yao, Zorro:  I think we need to arrange all the tests in
this area into a coherent series.  Should I do that?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/2] xfs/65[56]: don't unset SCRATCH_RTDEV here
  2026-07-02  3:57 ` [PATCH 2/2] xfs/65[56]: don't unset SCRATCH_RTDEV here Darrick J. Wong
@ 2026-07-02 10:36   ` Christoph Hellwig
  2026-07-02 15:24     ` Darrick J. Wong
  0 siblings, 1 reply; 7+ messages in thread
From: Christoph Hellwig @ 2026-07-02 10:36 UTC (permalink / raw)
  To: Darrick J. Wong; +Cc: zlang, fstests, linux-xfs, Yao Sang

On Wed, Jul 01, 2026 at 08:57:59PM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <djwong@kernel.org>
> 
> Both of these tests claim that they have to unset SCRATCH_RTDEV to avoid
> formatting failures due to the rt bitmap consuming all the space in the
> "small" data device.  However, the format doesn't constrain the size of
> the data device, so the justification doesn't apply.  Remove the whole
> thing.

Looks good, but as-is clashes with my
"formalize and fix disabling the RT subvolume" patch.  It might make
sense to take these two patches first, and then modified version
of

"formalize and fix disabling the RT subvolume"

and

"common: skip data write EIO survival tests on fatal configs"

on top of that.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] xfs/656: rearrange directio pread/pwrite for zoned filesystems
  2026-07-02 10:35 ` [PATCH 1/2] xfs/656: rearrange directio pread/pwrite for zoned filesystems Christoph Hellwig
@ 2026-07-02 15:23   ` Darrick J. Wong
  2026-07-03  2:21   ` Yao Sang
  1 sibling, 0 replies; 7+ messages in thread
From: Darrick J. Wong @ 2026-07-02 15:23 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: zlang, fstests, linux-xfs, Yao Sang

On Thu, Jul 02, 2026 at 12:35:04PM +0200, Christoph Hellwig wrote:
> On Wed, Jul 01, 2026 at 08:55:23PM -0700, Darrick J. Wong wrote:
> > From: Darrick J. Wong <djwong@kernel.org>
> > 
> > On zoned filesystems, a write failure shuts down the filesystem, which
> > makes this test fail with:
> 
> Looks good an increases the test coverage.  This also makes half of
> "common: skip data write EIO survival tests on fatal configs" obsolete.
> 
> Darrick, Yao, Zorro:  I think we need to arrange all the tests in
> this area into a coherent series.  Should I do that?

Yes please :)

--D

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 2/2] xfs/65[56]: don't unset SCRATCH_RTDEV here
  2026-07-02 10:36   ` Christoph Hellwig
@ 2026-07-02 15:24     ` Darrick J. Wong
  0 siblings, 0 replies; 7+ messages in thread
From: Darrick J. Wong @ 2026-07-02 15:24 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: zlang, fstests, linux-xfs, Yao Sang

On Thu, Jul 02, 2026 at 12:36:33PM +0200, Christoph Hellwig wrote:
> On Wed, Jul 01, 2026 at 08:57:59PM -0700, Darrick J. Wong wrote:
> > From: Darrick J. Wong <djwong@kernel.org>
> > 
> > Both of these tests claim that they have to unset SCRATCH_RTDEV to avoid
> > formatting failures due to the rt bitmap consuming all the space in the
> > "small" data device.  However, the format doesn't constrain the size of
> > the data device, so the justification doesn't apply.  Remove the whole
> > thing.
> 
> Looks good, but as-is clashes with my
> "formalize and fix disabling the RT subvolume" patch.  It might make
> sense to take these two patches first, and then modified version
> of
> 
> "formalize and fix disabling the RT subvolume"
> 
> and
> 
> "common: skip data write EIO survival tests on fatal configs"
> 
> on top of that.

Whatever order's most convenient for you is 100% ok with me.
That said, yes, let's remove the braindamage from xfs/65[56] first.

--D

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH 1/2] xfs/656: rearrange directio pread/pwrite for zoned filesystems
  2026-07-02 10:35 ` [PATCH 1/2] xfs/656: rearrange directio pread/pwrite for zoned filesystems Christoph Hellwig
  2026-07-02 15:23   ` Darrick J. Wong
@ 2026-07-03  2:21   ` Yao Sang
  1 sibling, 0 replies; 7+ messages in thread
From: Yao Sang @ 2026-07-03  2:21 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: zlang, fstests, linux-xfs

On Thu, Jul 02, 2026 at 12:35:04PM +0200, Christoph Hellwig wrote:
> On Wed, Jul 01, 2026 at 08:55:23PM -0700, Darrick J. Wong wrote:
> > From: Darrick J. Wong <djwong@kernel.org>
> > 
> > On zoned filesystems, a write failure shuts down the filesystem, which
> > makes this test fail with:
> 
> Looks good an increases the test coverage.  This also makes half of
> "common: skip data write EIO survival tests on fatal configs" obsolete.
> 
> Darrick, Yao, Zorro:  I think we need to arrange all the tests in
> this area into a coherent series.  Should I do that?
Yes, please.

The ordering makes sense to me. Please feel free to fold my patch into
the series as needed.

Thanks,
Yao

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-07-03  2:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-02  3:55 [PATCH 1/2] xfs/656: rearrange directio pread/pwrite for zoned filesystems Darrick J. Wong
2026-07-02  3:57 ` [PATCH 2/2] xfs/65[56]: don't unset SCRATCH_RTDEV here Darrick J. Wong
2026-07-02 10:36   ` Christoph Hellwig
2026-07-02 15:24     ` Darrick J. Wong
2026-07-02 10:35 ` [PATCH 1/2] xfs/656: rearrange directio pread/pwrite for zoned filesystems Christoph Hellwig
2026-07-02 15:23   ` Darrick J. Wong
2026-07-03  2:21   ` Yao Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox