]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: add test for send issuing duplicated rmdir ops
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)
commit56c94f468d20856a7a0df099f85f4ec529882330
treea13c727e48776ed847e38c024c53f6a2ef173d63
parent32dba770f823f9b028780d7eddde251d6f03dfbd
btrfs: add test for send issuing duplicated rmdir ops

Regression test for btrfs incremental send issue where an rmdir
instruction was sent multiple times for the same target directory.
The number of times depended on the number of hardlinks against
the same inode inside the target directory. That inode must have
had the highest number of all the inodes that were children of the
directory. This made the btrfs receive command fail immediately once
it received the second rmdir instruction.

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

   Btrfs: send, don't send rmdir for same target multiple times

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