btrfs: test incremental send after cloning extents from the same file
authorFilipe Manana <fdmanana@suse.com>
Mon, 11 Jan 2021 11:41:54 +0000 (11:41 +0000)
committerEryu Guan <guaneryu@gmail.com>
Sun, 17 Jan 2021 14:14:36 +0000 (22:14 +0800)
commitc1537fc9f2122a13119bd58a46d1d0c10280ce21
treeb30c6797d517c566f260ef06d8f8f93b16db5c94
parent3334128e4f530021e59796a8712cd86d952d5cbc
btrfs: test incremental send after cloning extents from the same file

Test that an incremental send operation correctly issues clone operations
for a file that had different parts of one of its extents cloned into
itself, at different offsets, and a large part of that extent was
overwritten, so all the reflinks only point to subranges of the extent.

This currently fails on btrfs but is fixed by a patch for the kernel that
has the following subject:

 "btrfs: send, fix invalid clone operations when cloning from the same file and root"

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/229 [new file with mode: 0755]
tests/btrfs/229.out [new file with mode: 0644]
tests/btrfs/group