]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: regression test for btrfs incremental send
authorFilipe Manana <fdmanana@suse.com>
Tue, 14 Oct 2014 11:59:39 +0000 (22:59 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 14 Oct 2014 11:59:39 +0000 (22:59 +1100)
commitedaea8a0750e2b3ba6ae8c1fd8c591206210b3c6
treecd10ec4a328472e5ffb95761a673c4409a57bb2d
parentb5830f404fadd6063e8462cf7cf4df9f17ccf8a7
btrfs: regression test for btrfs incremental send

This is a regression test for a btrfs incremental send issue.
If between two snapshots we rename an existing directory named X to Y and
make it a child (direct or not) of a new inode named X, we were delaying
the move/rename of the former directory unnecessarily, which would result
in attempting to rename the new directory from its orphan name to name X
prematurely. This made btrfs receive fail with an error message like the
following:

   rename o261-7-0 -> merlin/RC/OSD failed

This issue was a regression in the 3.16 kernel and got fixed by the
following linux kernel btrfs patch:

   Btrfs: send, don't delay dir move if there's a new parent inode

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/btrfs/077 [new file with mode: 0644]
tests/btrfs/077.out [new file with mode: 0644]
tests/btrfs/group