Whamcloud - gitweb
libext2fs: don't report garbage inodes with really large inodes
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 3 Dec 2014 03:17:10 +0000 (22:17 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 3 Dec 2014 03:17:10 +0000 (22:17 -0500)
commit54f6faf7f2897155a8341142539178532732d7af
tree448bd79b29ce9542c58329523d9f1bd44c064359
parentbbf29ce6e9301b90fc52040f039e77bd28cdd1c1
libext2fs: don't report garbage inodes with really large inodes

If the inode size is large enough that there are fewer than two inodes
per block, don't report an inode checksum failure as a garbage inode
during the scan because the "more than half are broken" criteria that
we use to decide if a block of inodes is garbage doesn't really apply.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/inode.c