btrfs: test for corruption when reading compressed files
authorFilipe Manana <fdmanana@suse.com>
Thu, 14 Feb 2019 15:18:39 +0000 (15:18 +0000)
committerEryu Guan <guaneryu@gmail.com>
Sat, 16 Feb 2019 10:24:43 +0000 (18:24 +0800)
commit53fc54907b7e00248f44bcf90fb0b784c08f9b44
tree927a82e9bf8a84b695c2817e3731a921a33da41b
parent7e764183bbd585854db8916689987361c4bcb8bf
btrfs: test for corruption when reading compressed files

Regression test for read corruption of compressed and shared extents
after punching holes into a file. The same extent is shared by the
same file in consecutive ranges (without other extents in between).

This is motivated by a bug recently found in btrfs for which there
is a patch for the linux kernel titled:

  "Btrfs: fix corruption reading shared and compressed extents after hole
   punching"

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