diff mbox series

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

Message ID 39ba965d983d0344f605ff01744304ba579527af.1739379186.git.fdmanana@suse.com (mailing list archive)
State New
Headers show
Series fstests: btrfs: fix test failure when running with compression or nodatasum | expand

Commit Message

Filipe Manana Feb. 12, 2025, 5:01 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.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
---
 tests/btrfs/281 | 2 ++
 1 file changed, 2 insertions(+)

Comments

David Sterba Feb. 12, 2025, 11:21 p.m. UTC | #1
On Wed, Feb 12, 2025 at 05:01:55PM +0000, fdmanana@kernel.org wrote:
> 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.
> 
> Signed-off-by: Filipe Manana <fdmanana@suse.com>

Reviewed-by: David Sterba <dsterba@suse.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"