From c41a7602d1eb609e04d83427c051c3945373e165 Mon Sep 17 00:00:00 2001 From: Filipe Manana Date: Wed, 12 Feb 2025 23:35:06 +0000 Subject: [PATCH] btrfs: skip tests that exercise compression property when using nodatasum 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 Reviewed-by: Johannes Thumshirn Reviewed-by: David Sterba Reviewed-by: Qu Wenruo Reviewed-by: Anand Jain Signed-off-by: Zorro Lang --- tests/btrfs/048 | 3 +++ tests/btrfs/059 | 3 +++ 2 files changed, 6 insertions(+) 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 -- 2.47.3