xfstests: add test for btrfs incremental send data corruption
authorFilipe David Borba Manana <fdmanana@gmail.com>
Tue, 4 Feb 2014 00:51:08 +0000 (11:51 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 4 Feb 2014 00:51:08 +0000 (11:51 +1100)
commit1a258e99fd2e46bdf1633edb8fcabc2ed8ef052a
tree3c46378c11e5f153ea3747d56c78df0b124f61c2
parentad969ca34be54fc3a25bfdcc7fb7a5fb55013b04
xfstests: add test for btrfs incremental send data corruption

Btrfs incremental send had an issue where it would detect a non-existent
file hole and then overwrite the file section that hole covers with zeroes,
overriding file data that it shouldn't.

The respective btrfs kernel patch that fixed this issue is titled:

   Btrfs: fix send file hole detection leading to data corruption
   (https://patchwork.kernel.org/patch/3544831/)

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