]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
xfs: don't run tests that require v4 file systems when not supported
authorChristoph Hellwig <hch@lst.de>
Thu, 18 Apr 2024 07:40:46 +0000 (09:40 +0200)
committerZorro Lang <zlang@kernel.org>
Sat, 20 Apr 2024 14:40:48 +0000 (22:40 +0800)
commitb9785de77fcb7b4c9f58d6d7178a0ef63a059b84
tree27eb615a7da64a41d261ce088f5af0ccc7ec5818
parentde346dc82313ebd39022603c71e5cc9a76133309
xfs: don't run tests that require v4 file systems when not supported

Add a _require_xfs_nocrc helper that checks that we can mkfs and mount
a crc=0 file systems before running tests that rely on it to avoid failures
on kernels with CONFIG_XFS_SUPPORT_V4 disabled.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
12 files changed:
common/xfs
tests/xfs/002
tests/xfs/095
tests/xfs/096
tests/xfs/132
tests/xfs/148
tests/xfs/194
tests/xfs/199
tests/xfs/300
tests/xfs/526
tests/xfs/612
tests/xfs/613