]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: test send optimal cloning behaviour
authorFilipe Manana <fdmanana@suse.com>
Wed, 25 Jan 2023 11:07:54 +0000 (11:07 +0000)
committerZorro Lang <zlang@kernel.org>
Fri, 3 Feb 2023 09:30:02 +0000 (17:30 +0800)
commit276e00a966b3e221dfe8dbc15b4deea194356fad
tree02871e4098bda2b62243529c368439fcd288a1d0
parentd3db87166a6d21a0d1279b15675edb7630dba3dd
btrfs: test send optimal cloning behaviour

Test that send operations do the best cloning decisions when we have
extents that are shared but some files refer to the full extent while
others refer to only a section of the extent.

This exercises an optimization that was added to kernel 6.2, by the
following commit:

  c7499a64dcf6 ("btrfs: send: optimize clone detection to increase extent sharing")

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/283 [new file with mode: 0755]
tests/btrfs/283.out [new file with mode: 0644]