]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
btrfs/281: skip test when running with nodatasum mount option
authorFilipe Manana <fdmanana@suse.com>
Wed, 12 Feb 2025 23:35:05 +0000 (23:35 +0000)
committerZorro Lang <zlang@kernel.org>
Fri, 14 Feb 2025 19:22:04 +0000 (03:22 +0800)
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: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/281

index 855dd8249cd54450fd5efc10e9a2325e91490fd8..8fb7158ac93cf3a874eaa96472f9bbf8baa3cbeb 100755 (executable)
@@ -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"