]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
ext4: test partial blocksize defrag integrity issue
authorEryu Guan <eguan@redhat.com>
Thu, 18 Feb 2016 23:42:40 +0000 (10:42 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 18 Feb 2016 23:42:40 +0000 (10:42 +1100)
commitb741135ef7d71b0b921c93c91b14dffa3a9ebb71
treea643fdccd89f9f0a9129eb7bc3e25669860862cc
parentea61a6acdfadc9d43ca0cad20fad6d8ca53288c7
ext4: test partial blocksize defrag integrity issue

Calling EXT4_IOC_MOVE_EXTENT on file not aligned with block size and
block size is smaller than page size would cause integrity issue on the
partial-blocksize part when copying data between orign file and donor
file.

This ext4 kernel patch would fix it, titled
"ext4: don't read blocks from disk after extents being swapped in
move_extent_per_page())"

Though this bug only happens in the blocksize smaller than pagesize
case, there's no harm to test on various block size fs, so no block size
is specified in the test, it depends on the test configurations.

Signed-off-by: Eryu Guan <eguan@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/ext4/020 [new file with mode: 0755]
tests/ext4/020.out [new file with mode: 0644]
tests/ext4/group