]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
common/fuzzy: make _scratch_fuzz_modify work for non-xfs filesystems
authorLuis Henriques (SUSE) <luis.henriques@linux.dev>
Fri, 15 Mar 2024 17:13:24 +0000 (17:13 +0000)
committerZorro Lang <zlang@kernel.org>
Sat, 30 Mar 2024 07:48:12 +0000 (15:48 +0800)
commit3717a1ec4cf1e42043fe080d33d4c7d51cebd37f
treec67426eaa63f6203be0db61a479afb899dd235e4
parent34cdaf0831ee423051030999aebb4d19298f826e
common/fuzzy: make _scratch_fuzz_modify work for non-xfs filesystems

Since commit 9bab148bb3c7 ("common/fuzzy: exercise the filesystem a little
harder after repairing") funtion _scratch_fuzz_modify() has become
xfs-specific due to the use of some functions that assume this filesytem,
namely _xfs_force_bdev() and _xfs_has_feature().

Ensure _scratch_fuzz_modify() works again with other filesystems by using
these functions only when testing xfs.

Signed-off-by: "Luis Henriques (SUSE)" <luis.henriques@linux.dev>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/fuzzy