Whamcloud - gitweb
e2fsck: check for zero length extent
authorTheodore Ts'o <tytso@mit.edu>
Sun, 11 Mar 2012 20:19:10 +0000 (16:19 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 12 Mar 2012 03:31:38 +0000 (23:31 -0400)
commit26c09eb8145a16dcba6c40810d46a78712d253f2
treeebc779c27fcedcd2602156a141add4dcba80e717
parentc15386cdeed2464736f46bf1b19ec80ba8812dbf
e2fsck: check for zero length extent

If an extent has e_len set to zero, the kernel will oops with a
BUG_ON.  Unfortunately, e2fsck wasn't catching this case.  The kernel
needs to be fixed to notice this case and call ext4_error() instead of
failing an assertion check, but e2fsck should catch this case and
repair it (by deleting the errant extent).

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/pass1.c
e2fsck/problem.c
e2fsck/problem.h
tests/f_ext_zero_len/expect.1 [new file with mode: 0644]
tests/f_ext_zero_len/expect.2 [new file with mode: 0644]
tests/f_ext_zero_len/image.gz [new file with mode: 0644]
tests/f_ext_zero_len/name [new file with mode: 0644]