btrfs: send with shared and compressed extents

Test that a send operation works correctly with reflinked files (cloned
extents which multiple files point to) that have compressed extents.

This used to fail on btrfs, resulting in different file digests after
receiving the send stream, and got fixed by the linux kernel patch
titled:

  "Btrfs: send, fix file corruption due to incorrect cloning operations"

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Filipe Manana
2015-10-14 14:19:34 +11:00
committed by Dave Chinner
parent f1b304ab97
commit 71d8215c19
3 changed files with 125 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
QA output created by 109
wrote 102400/102400 bytes at offset 0
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
wrote 40960/40960 bytes at offset 0
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
wrote 102400/102400 bytes at offset 102400
XXX Bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
File digests in the original filesystem:
253f558dbd25727d7d2fdb77f9ad2590 SCRATCH_MNT/snap/foo
253f558dbd25727d7d2fdb77f9ad2590 SCRATCH_MNT/snap/bar
File digests in the new filesystem:
253f558dbd25727d7d2fdb77f9ad2590 SCRATCH_MNT/snap/foo
253f558dbd25727d7d2fdb77f9ad2590 SCRATCH_MNT/snap/bar