OSDN Git Service

e2fsck: check extent-mapped directories with really large logical blocks
authorTheodore Ts'o <tytso@mit.edu>
Mon, 29 Jul 2013 00:54:36 +0000 (20:54 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 29 Jul 2013 01:03:00 +0000 (21:03 -0400)
commitdd50ef87432284d93b9f39178c4fab242d76654e
treebf66feb2fcf658a57929c3a1301150531d6aaef4
parent42b61c50e5af99a10fc56975ecd08ab71e4f00e8
e2fsck: check extent-mapped directories with really large logical blocks

E2fsck was missing a check for directories with logical blocks so
large that i_size > 2GB.  Without this check the test image found in
the new test f_toobig_extent_dir will cause e2fsck to die with a
memory allocation failure:

Error storing directory block information (inode=12, block=0, num=475218819): Memory allocation failed
e2fsck: aborted

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reported-by: Andrey Melnikov <temnota.am@gmail.com>
e2fsck/pass1.c
tests/f_toobig_extent_dir/expect.1 [new file with mode: 0644]
tests/f_toobig_extent_dir/expect.2 [new file with mode: 0644]
tests/f_toobig_extent_dir/image.gz [new file with mode: 0644]
tests/f_toobig_extent_dir/name [new file with mode: 0644]