commit | fae2467fb63b93a9bc8fa354b98daf3a0c87005a | [log] [tgz] |
---|---|---|
author | Darrick J. Wong <darrick.wong@oracle.com> | Sat Mar 28 23:58:20 2015 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Sat Mar 28 23:58:20 2015 -0400 |
tree | 298918cc19c325fa9bfbb71d5d442815a2fc1792 | |
parent | 3d28f54589909de7abe477c2ca9d2ff7b0f2404d [diff] |
libext2fs: ext2fs_new_block2() should call alloc_block hook If ext2fs_new_block2() is called without a specific block map, we should call the alloc_block hook before checking fs->block_map. This helps us to avoid a bug in e2fsck where we need to allocate a block but instead of consulting block_found_map, we use the FS bitmaps, which (prior to pass 5) could be wrong. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>