btrfs: send/receive with sparse files
authorFilipe Manana <fdmanana@suse.com>
Tue, 14 Feb 2017 20:35:53 +0000 (20:35 +0000)
committerEryu Guan <eguan@redhat.com>
Wed, 15 Feb 2017 10:02:15 +0000 (18:02 +0800)
commitc8abfdd9303bed8db9a26646b8c47d1072c0d51a
tree4a8bf7d6f67beff5a1badda8c8b5f0e879323f01
parent8a02ca3bcc62d2944325857a4e5f8529a16f8aeb
btrfs: send/receive with sparse files

Test that both a full and incremental btrfs send operation preserves
file holes.

This used to fail when the filesystem had the NO_HOLES feature enabled,
that is, when the test is run with MKFS_OPTIONS="-O no-holes".

This is fixed by the following patch for the linux kernel:

  "Btrfs: incremental send, fix unnecessary hole writes for sparse files"

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/btrfs/137 [new file with mode: 0755]
tests/btrfs/137.out [new file with mode: 0644]
tests/btrfs/group