btrfs: test for btrfs send when nested subvols/snapshots exist
authorFilipe David Borba Manana <fdmanana@gmail.com>
Tue, 27 May 2014 02:07:42 +0000 (12:07 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 27 May 2014 02:07:42 +0000 (12:07 +1000)
commit45d1fac1303acfa102384f48111dc3a458b93493
tree2d29b6ca4dc65b5126bbe6cf471daebbde0f5fad
parent3318629e4a9a36b28d36be75e8a01b7eeeddec1f
btrfs: test for btrfs send when nested subvols/snapshots exist

Regression test for a btrfs incremental send issue where the difference
between the snapshots used by the incremental send consists of one of
these cases:

1) First snapshot has a directory with name X and in the second snapshot
   that directory doesn't exist anymore but a subvolume/snapshot with
   the same name (X) exists;

2) First snapshot has a subvolume/snapshot with name X and in the second
   snapshot that subvolume/snapshot doesn't exist anymore (might have been
   replaced by a directory with the same name or not).

This issue is fixed by the following linux kernel btrfs patches:

    Btrfs: send, don't error in the presence of subvols/snapshots
    Btrfs: set dead flag on the right root when destroying snapshot

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/btrfs/054 [new file with mode: 0755]
tests/btrfs/054.out [new file with mode: 0644]
tests/btrfs/group