diff mbox series

[v2,8/8] btrfs: skip tests that exercise compression property when using nodatasum

Message ID bba353ff8e99673a70f79ede58951f77d004bb22.1739403114.git.fdmanana@suse.com (mailing list archive)
State New
Headers show
Series [v2,1/8] btrfs: skip tests incompatible with compression when compression is enabled | expand

Commit Message

Filipe Manana Feb. 12, 2025, 11:35 p.m. UTC
From: Filipe Manana <fdmanana@suse.com>

A couple tests exercise the compression property and that fails when an
inode has the nodatasum flag set. So skip the tests when running under the
nodatasum mount option.

Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
---
 tests/btrfs/048 | 3 +++
 tests/btrfs/059 | 3 +++
 2 files changed, 6 insertions(+)

Comments

Johannes Thumshirn Feb. 13, 2025, 9:41 a.m. UTC | #1
Looks good,
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
diff mbox series

Patch

diff --git a/tests/btrfs/048 b/tests/btrfs/048
index a38c3951..3676debe 100755
--- a/tests/btrfs/048
+++ b/tests/btrfs/048
@@ -28,6 +28,9 @@  _require_scratch
 _require_btrfs_command "property"
 _require_btrfs_command inspect-internal dump-super
 _require_btrfs_no_nodatacow
+# We exercise setting compression through properties, and that fails on inodes
+# with nodatasum, so skip when mounting with nodatasum.
+_require_btrfs_no_nodatasum
 
 send_files_dir=$TEST_DIR/btrfs-test-$seq
 
diff --git a/tests/btrfs/059 b/tests/btrfs/059
index 227ebb14..3da6a5a9 100755
--- a/tests/btrfs/059
+++ b/tests/btrfs/059
@@ -26,6 +26,9 @@  _require_test
 _require_scratch
 _require_btrfs_command "property"
 _require_btrfs_no_nodatacow
+# We exercise setting compression through properties, and that fails on inodes
+# with nodatasum, so skip when mounting with nodatasum.
+_require_btrfs_no_nodatasum
 
 _scratch_mkfs >> $seqres.full 2>&1
 _scratch_mount