btrfs: add test for btrfs incremental send data corruption
authorFilipe David Borba Manana <fdmanana@gmail.com>
Fri, 4 Apr 2014 06:20:52 +0000 (17:20 +1100)
committerDave Chinner <david@fromorbit.com>
Fri, 4 Apr 2014 06:20:52 +0000 (17:20 +1100)
commite0ff31aa69f2079abee82b6ae4b670e14a260877
tree99aed8d638bc4eed8e49a5e6329ff048c65ea009
parent947ee8bd4b59770534297572b14c695e9c6e001e
btrfs: add test for btrfs incremental send data corruption

Regression test for the btrfs incremental send feature, where the kernel
would incorrectly consider a range of a file as a hole and send a stream
of 0 bytes to the destination (send stream) that would overwrite the
corresponding file region.

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

   Btrfs: send, fix data corruption due to incorrect hole detection
   (https://patchwork.kernel.org/patch/3910081/)

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