From: Darrick J. Wong Date: Mon, 16 Mar 2026 23:29:19 +0000 (-0700) Subject: xfs/6{59-61}: force xfs_healer to run X-Git-Tag: v2026.04.20~21 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=78b8a11f8c2f617f81a35cc58ee83f3ac17cdb56;p=xfstests-dev.git xfs/6{59-61}: force xfs_healer to run Set the autofsck property so that xfs_healer actually runs on filesystems with old feature sets. Since these tests are looking for error reports that don't require backref metadata (media errors, file IO errors, shutdowns) we needn't _notrun them. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Signed-off-by: Zorro Lang --- diff --git a/tests/xfs/659 b/tests/xfs/659 index 6d17711a..556c1991 100755 --- a/tests/xfs/659 +++ b/tests/xfs/659 @@ -26,6 +26,7 @@ _cleanup() _require_scratch _require_scrub _require_command "$XFS_HEALER_PROG" "xfs_healer" +_require_command "$XFS_PROPERTY_PROG" "xfs_property" _require_dm_target error _require_no_xfs_always_cow # no out of place writes @@ -59,6 +60,8 @@ _scratch_mkfs >> $seqres.full # _scratch_mount _require_xfs_scratch_non_zoned +# Force xfs_healer to run even if there's no backref metadata +$XFS_PROPERTY_PROG $SCRATCH_MNT set autofsck=check >> $seqres.full _require_xfs_healer $SCRATCH_MNT _scratch_unmount diff --git a/tests/xfs/660 b/tests/xfs/660 index 214dfe1a..962a2fc7 100755 --- a/tests/xfs/660 +++ b/tests/xfs/660 @@ -25,6 +25,7 @@ _require_scratch _require_scrub _require_dm_target error _require_command "$XFS_HEALER_PROG" "xfs_healer" +_require_command "$XFS_PROPERTY_PROG" "xfs_property" _require_xfs_io_command verifymedia filter_healer() { @@ -57,6 +58,8 @@ _scratch_mkfs >> $seqres.full _scratch_mount _require_xfs_scratch_non_zoned _require_xfs_healer $SCRATCH_MNT +# Force xfs_healer to run even if there's no backref metadata +$XFS_PROPERTY_PROG $SCRATCH_MNT set autofsck=check >> $seqres.full _scratch_unmount _dmerror_init diff --git a/tests/xfs/661 b/tests/xfs/661 index f3f74cfe..45e09539 100755 --- a/tests/xfs/661 +++ b/tests/xfs/661 @@ -16,10 +16,14 @@ _begin_fstest auto quick scrub eio selfhealing shutdown _require_scratch_nocheck _require_scrub _require_command "$XFS_HEALER_PROG" "xfs_healer" +_require_command "$XFS_PROPERTY_PROG" "xfs_property" _scratch_mkfs >> $seqres.full _scratch_mount _require_xfs_healer $SCRATCH_MNT +# Force xfs_healer to run even if there's no backref metadata +$XFS_PROPERTY_PROG $SCRATCH_MNT set autofsck=check >> $seqres.full + $XFS_IO_PROG -f -c "pwrite -S 0x58 0 500k" -c "fsync" $victim >> $seqres.full echo "Start healer and shut down"