Whamcloud - gitweb
e2fsck: Try to update on-disk bitmap in e2fsck_get_alloc_block() callback
authorTheodore Ts'o <tytso@mit.edu>
Sun, 29 Nov 2009 06:24:06 +0000 (01:24 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 29 Nov 2009 06:24:06 +0000 (01:24 -0500)
commit8a2cbe2c6deb93ccfed58fd755c886fce16586a3
treec40f17684e629b974445ecb787ef9cbe2c3a7341
parentf4e14505ed19a1527aa69a0474fe3b15ddf8b188
e2fsck: Try to update on-disk bitmap in e2fsck_get_alloc_block() callback

The e2fsck_get_alloc_block() callback is used so that if the ext2fs
library needs to allocate blocks internally (most notably by the
extents functions), e2fsck's internal block usage map is consulted
since it is the only thing that can be trusted during a large part of
e2fsck's operation.

Change it to update the on-disk bitmap if it is loaded.  This reduces
the number of spurious differences found in pass #5.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/pass1.c