]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
btrfs: skip tests that exercise compression property when using nodatasum
authorFilipe Manana <fdmanana@suse.com>
Wed, 12 Feb 2025 23:35:06 +0000 (23:35 +0000)
committerZorro Lang <zlang@kernel.org>
Fri, 14 Feb 2025 19:22:31 +0000 (03:22 +0800)
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.

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/048
tests/btrfs/059

index a38c3951847198100f0e307b4d006dbd8fabacbd..3676debe977ca02b5cd29db3452b68f6a2b91b8f 100755 (executable)
@@ -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
 
index 227ebb14d37ba0120e3a1f5b01b57d93b9a6f8e0..3da6a5a9e0dd128a03dd2a3d7219375ce7f5f8f4 100755 (executable)
@@ -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