]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
btrfs/205: skip test when running with nodatasum mount option
authorFilipe Manana <fdmanana@suse.com>
Wed, 12 Feb 2025 23:35:03 +0000 (23:35 +0000)
committerZorro Lang <zlang@kernel.org>
Fri, 14 Feb 2025 19:21:18 +0000 (03:21 +0800)
commitd449f1724e93321d300028eea9b29d375af8179d
tree3d6029714629f6b5905c480623292b604839b357
parente0ece7b8f4974a205cc21bed7996acac912a1509
btrfs/205: skip test when running with nodatasum mount option

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@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.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/205