btrfs: add test for incremental send after dir renames
authorFilipe David Borba Manana <fdmanana@gmail.com>
Tue, 18 Feb 2014 10:18:21 +0000 (21:18 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 18 Feb 2014 10:18:21 +0000 (21:18 +1100)
commit32dba770f823f9b028780d7eddde251d6f03dfbd
tree8b30311f6849e1e85df38c54833ecb6ef18a75c2
parent4eb876c37182f73a6ae570ade7e0a43bb0382800
btrfs: add test for incremental send after dir renames

Regression test for a btrfs incremental send issue related to
renaming of directories. If at the time of the initial send we have
a directory that is a child of a directory with a higher inode
number, and then later after the initial full send we rename both
the child and parent directories, but without moving any of them, a
subsequent incremental send would produce a rename instruction for
the child directory that pointed to an invalid path.  This made the
btrfs receive operation fail.

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

   Btrfs: incremental send, fix invalid path after dir rename

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