Rework the feature detection in the one online fsck stress test so that
we only format the scratch device twice per test run.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
# real QA test starts here
_supported_fs xfs
-_require_xfs_scratch_rmapbt
+_require_scratch
_require_xfs_stress_online_repair
_scratch_mkfs > "$seqres.full" 2>&1
_scratch_mount
+_require_xfs_has_feature "$SCRATCH_MNT" rmapbt
_scratch_xfs_stress_online_repair
# success, all done