btrfs: test sending snapshots received from other filesystems
authorFilipe Manana <fdmanana@suse.com>
Wed, 14 Oct 2015 03:19:34 +0000 (14:19 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 14 Oct 2015 03:19:34 +0000 (14:19 +1100)
commitbe6122971fa08146ee531f84a7553aa15e2b63ec
treee84bb24c369ec468d7cf1fb3d50fb3ca68cbfbc1
parenta2bfff4d6cc85af4a6403371b38cf720447c8be9
btrfs: test sending snapshots received from other filesystems

Test that sending a snapshot received from a different filesystem is
possible for both full and incremental send operations.

This used to work until the linux kernel release 4.2, but a commit [1] in
that release introduced a regression which did not allow this anymore.

The regression is fixed by the linux kernel patch titled:

  "btrfs: fix resending received snapshot with parent"

[1] 37b8d27de5d0 ("Btrfs: use received_uuid of parent during send")

Cc: Josef Bacik <jbacik@fb.com>
Cc: Robin Ruede <rruede+git@gmail.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/btrfs/111 [new file with mode: 0755]
tests/btrfs/111.out [new file with mode: 0644]
tests/btrfs/group