]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsck: fix sparse bmap to extent conversion
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 25 May 2017 01:56:36 +0000 (21:56 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 25 May 2017 02:12:39 +0000 (22:12 -0400)
commit855c2ecb21d1556c26d61df9b014e1c79dbbc956
tree7af68b95e00e443261b0c720157bc39b1cacaff2
parent6eae35c0a8f18877988bc963e920cf715aa3347f
e2fsck: fix sparse bmap to extent conversion

When e2fsck is trying to convert a sparse block-mapped file to an extent
file, we incorrectly merge block mappings that are physically contiguous
but not logically contiguous because of insufficient checking with the
extent we're constructing.  Therefore, compare the logical offsets for
contiguity as well.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/extents.c
lib/support/plausible.h
tests/f_convert_bmap_sparse/expect.1 [new file with mode: 0644]
tests/f_convert_bmap_sparse/expect.2 [new file with mode: 0644]
tests/f_convert_bmap_sparse/image.gz [new file with mode: 0644]
tests/f_convert_bmap_sparse/name [new file with mode: 0644]
tests/f_convert_bmap_sparse/script [new file with mode: 0644]