btrfs: test read corruption of compressed extents differently
authorFilipe Manana <fdmanana@suse.com>
Wed, 14 Oct 2015 03:08:12 +0000 (14:08 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 14 Oct 2015 03:08:12 +0000 (14:08 +1100)
commit7f0a867ce6838c9ce5bee715075374a3e629cb1a
treeae18167fac9f78b0af785e0bd7ae0ebcc1f125a3
parent88b71e7bffc90fcd2a97d8d8bdcd5b82e2f50640
btrfs: test read corruption of compressed extents differently

Regression test for file read corruption when using compressed extents
that represent file ranges with a length that is a multiple of 16 pages
and that are shared by multiple consecutive ranges of the same file.

This is similar to the test added in commit 694db0c050d6 ("btrfs: read
corruption of compressed extents"), but tests the special case where the
extent's uncompressed length is a multiple of 16 pages. The first btrfs
fix, tested by the test added in the commit mentioned before, failed to
address this special case.

This btrfs issue is fixed by the linux kernel patch titled:
"Btrfs: update fix for read corruption of compressed and shared extents"

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/btrfs/106 [new file with mode: 0755]
tests/btrfs/106.out [new file with mode: 0644]
tests/btrfs/group