From: Christoph Hellwig Date: Fri, 21 Nov 2025 07:10:05 +0000 (+0100) Subject: generic/484: force I/O to the data device for XFS X-Git-Tag: v2025.12.09~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=37a5ef84413e040bbcf2784d83e0a0c1ec70c0a5;p=xfstests-dev.git 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 --- 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