From: Filipe Manana <fdmanana@xxxxxxxx> Currently the test fails when we pass "-o nodatasum" in MOUNT_OPTIONS and the reason is because we enable compression, with "chattr +c", on a file and then try to clone from it to a file with nodatasum inherited from the mount options, which results in the clone ioctl to fail with -EINVAL since it's not possible to clone from datasum to nodatasum and vice-versa. So skip the test if nodatasum is a mount option. Signed-off-by: Filipe Manana <fdmanana@xxxxxxxx> --- tests/btrfs/205 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/btrfs/205 b/tests/btrfs/205 index 13a1df8b..a557ab14 100755 --- a/tests/btrfs/205 +++ b/tests/btrfs/205 @@ -24,6 +24,11 @@ _require_xfs_io_command "falloc" "-k" _require_command "$CHATTR_PROG" chattr _require_btrfs_fs_feature "no_holes" _require_btrfs_mkfs_feature "no-holes" +# We want to create a compressed inline extent representing 4K of data for file +# foo1 and then clone it into a file without compression, and since compression +# implies datasum, cloning fails if the destination file has nodatasum. So skip +# the test if nodatasum is present in MOUNT_OPTIONS. +_require_btrfs_no_nodatasum run_tests() { -- 2.45.2