btrfs: add test for incremental send for file with shared extents
authorFilipe Manana <fdmanana@suse.com>
Mon, 3 Feb 2020 16:19:19 +0000 (16:19 +0000)
committerEryu Guan <guaneryu@gmail.com>
Sun, 9 Feb 2020 14:19:03 +0000 (22:19 +0800)
commit8a861b8faf1f1d4eb98d5c130ac7f76b2fcb477a
tree7aa5d18be2c510d4cd7f0867498a8b2ed1815e12
parentc0679253bc141fe9fe5e9831028a0bf01f29596a
btrfs: add test for incremental send for file with shared extents

Test that an incremental send operation works correctly when a file has
shared extents with itself in the send snapshot, with a hole between them,
and the file size has increased in the send snapshot.

This currently fails in 5.5-rc kernels (regression) but is fixed by a
patch that has the following subject:

  Btrfs: send, fix emission of invalid clone operations within the same file

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/203 [new file with mode: 0755]
tests/btrfs/203.out [new file with mode: 0644]
tests/btrfs/group