From 37a5ef84413e040bbcf2784d83e0a0c1ec70c0a5 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Fri, 21 Nov 2025 08:10:05 +0100 Subject: [PATCH] generic/484: force I/O to the data device for XFS Otherwise the error injection to the data device might not work as expected. For example in some zoned setups I see the failures in a slightly different spot than expected without this. Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Signed-off-by: Zorro Lang --- tests/generic/484 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/generic/484 b/tests/generic/484 index ec50735a..0455efcb 100755 --- a/tests/generic/484 +++ b/tests/generic/484 @@ -42,6 +42,9 @@ _scratch_mkfs > $seqres.full 2>&1 _dmerror_init _dmerror_mount +# ensure we are on the data device, as dm error inject the error there +[ "$FSTYP" == "xfs" ] && _xfs_force_bdev data $SCRATCH_MNT + # create file testfile=$SCRATCH_MNT/syncfs-reports-errors touch $testfile -- 2.47.3