Whamcloud - gitweb
Fix ext2fs_extent_get for uninit leaf extents
authorEric Sandeen <sandeen@redhat.com>
Wed, 19 Mar 2008 20:20:18 +0000 (15:20 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 20 Mar 2008 19:45:27 +0000 (15:45 -0400)
commit85b59c40f4b37e43e58aef188b07a3b6678ce782
treeaa70f80612cdd49fa79db1da293d993fd09a9bfb
parent635e20abc1f650afe4988265150445e05f1c0b90
Fix ext2fs_extent_get for uninit leaf extents

The ext2fs_extent_get() function was not OR-ing together UNINIT
and LEAF flags in the case where an extent was both; so if we
had an extent which was both uniint and leaf, pass1 would bail
out where depth == max_depth but was not marked as leaf, and
e2fsck (from the next branch) would abort with:

e2fsck 1.40.8 (13-Mar-2008)
Pass 1: Checking inodes, blocks, and sizes
Error1: No 'down' extent
Aborted

Also, if the error is encountered again, print the inode number
to aid debugging until it's properly handled, at least.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/pass1.c
lib/ext2fs/extent.c