diff options
author | Filipe Manana <fdmanana@suse.com> | 2024-02-01 18:03:47 +0000 |
---|---|---|
committer | Zorro Lang <zlang@kernel.org> | 2024-03-01 19:24:16 +0800 |
commit | 15c084fe1137fedf870e4947ed259a89f1e9c62e (patch) | |
tree | 191f0d1f6870b44ed93e67dfd31cc86ae1fae05d | |
parent | 28928ea7af864f6f38133122c8f739e4f658f46a (diff) | |
download | xfstests-dev-15c084fe1137fedf870e4947ed259a89f1e9c62e.tar.gz |
btrfs: require no nodatacow for tests that exercise compression
Several test cases fail when running with MOUNT_OPTIONS="-o nodatacow"
because they attempt to use compression and compression can not be
enabled on nodatacow files (it fails with -EINVAL). So make sure those
tests are not run if nodatacow is specified in MOUNT_OPTIONS.
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
-rwxr-xr-x | tests/btrfs/024 | 1 | ||||
-rwxr-xr-x | tests/btrfs/048 | 1 | ||||
-rwxr-xr-x | tests/btrfs/059 | 1 | ||||
-rwxr-xr-x | tests/btrfs/138 | 1 | ||||
-rwxr-xr-x | tests/btrfs/234 | 1 | ||||
-rwxr-xr-x | tests/btrfs/281 | 1 |
6 files changed, 6 insertions, 0 deletions
diff --git a/tests/btrfs/024 b/tests/btrfs/024 index 95c734eca1..a8ca0e1d32 100755 --- a/tests/btrfs/024 +++ b/tests/btrfs/024 @@ -17,6 +17,7 @@ _begin_fstest auto quick compress # real QA test starts here _supported_fs btrfs _require_scratch +_require_btrfs_no_nodatacow __workout() { diff --git a/tests/btrfs/048 b/tests/btrfs/048 index 8a88b8cc04..aa2030b12d 100755 --- a/tests/btrfs/048 +++ b/tests/btrfs/048 @@ -30,6 +30,7 @@ _require_test _require_scratch _require_btrfs_command "property" _require_btrfs_command inspect-internal dump-super +_require_btrfs_no_nodatacow send_files_dir=$TEST_DIR/btrfs-test-$seq diff --git a/tests/btrfs/059 b/tests/btrfs/059 index 76a1e76e76..8b458b341f 100755 --- a/tests/btrfs/059 +++ b/tests/btrfs/059 @@ -28,6 +28,7 @@ _supported_fs btrfs _require_test _require_scratch _require_btrfs_command "property" +_require_btrfs_no_nodatacow _scratch_mkfs >> $seqres.full 2>&1 _scratch_mount diff --git a/tests/btrfs/138 b/tests/btrfs/138 index f99e58e706..427fdede01 100755 --- a/tests/btrfs/138 +++ b/tests/btrfs/138 @@ -18,6 +18,7 @@ _begin_fstest auto compress _supported_fs btrfs _require_scratch _require_btrfs_command property +_require_btrfs_no_nodatacow algos=($(_btrfs_compression_algos)) diff --git a/tests/btrfs/234 b/tests/btrfs/234 index c045ea6c20..542515e815 100755 --- a/tests/btrfs/234 +++ b/tests/btrfs/234 @@ -18,6 +18,7 @@ _begin_fstest auto quick compress rw _supported_fs btrfs _require_scratch _require_odirect +_require_btrfs_no_nodatacow _require_chattr c _scratch_mkfs >>$seqres.full 2>&1 diff --git a/tests/btrfs/281 b/tests/btrfs/281 index 63fb89ea2b..6407522567 100755 --- a/tests/btrfs/281 +++ b/tests/btrfs/281 @@ -25,6 +25,7 @@ _require_scratch_reflink _require_btrfs_send_v2 _require_xfs_io_command "fiemap" _require_fssum +_require_btrfs_no_nodatacow _fixed_by_kernel_commit a11452a3709e \ "btrfs: send: avoid unaligned encoded writes when attempting to clone range" |