]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsck: disable checksum verification in a few select places
authorDarrick J. Wong <darrick.wong@oracle.com>
Sun, 3 Aug 2014 02:51:33 +0000 (22:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 3 Aug 2014 02:51:33 +0000 (22:51 -0400)
commitd4864e020421bf13afde4da04277ef5ca03adffd
tree82399b086b42d050e21841abccb6dcdabed42c40
parentb9f95911e9e89a456c9b7bdc0ca68c111a931b30
e2fsck: disable checksum verification in a few select places

Selectively disable checksum verification in a couple more places:

In check_blocks, disable checksum verification when iterating a block
map because the block map iterator function (re)reads the inode, which
could be unchanged since the scan found that the checksum fails.  We
don't want to abort here; we want to keep evaluating the inode, and we
already know if the inode checksum doesn't match.

Further down in check_blocks when we're trying to see if i_size
matches the amount of data stored in the inode, don't allow checksum
errors when we go looking for the size of inline data.  If the
required attribute is at all find-able in the EA block, we'll fix any
other problems with the EA block later.  In the meantime, we don't
want to be truncating files unnecessarily.

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