diff mbox series

[v2,7/8] btrfs/281: skip test when running with nodatasum mount option

Message ID 313bb218f2c32ce565b6b2e3a9adbda6c68d4d41.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>

The test exercises compression and compression doesn't happen on inodes
with checksums disabled (nodatasum), making the test fail the expectations
if getting compressed extents. So skip the test if nodatasum is present.

Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
---
 tests/btrfs/281 | 2 ++
 1 file changed, 2 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/281 b/tests/btrfs/281
index 855dd824..8fb7158a 100755
--- a/tests/btrfs/281
+++ b/tests/btrfs/281
@@ -25,6 +25,8 @@  _require_btrfs_send_version 2
 _require_xfs_io_command "fiemap"
 _require_fssum
 _require_btrfs_no_nodatacow
+# Compression can't happen with nodatasum, so skip the test.
+_require_btrfs_no_nodatasum
 
 _fixed_by_kernel_commit a11452a3709e \
 	"btrfs: send: avoid unaligned encoded writes when attempting to clone range"