mirror of https://github.com/vitalif/e2fsprogs
libext2fs: fix regression in ext2fs_new_block2() for uninit_bg file systems
Commit b0ecb787ef
introduced a bug in check_block_uninit(), which is
used by ext2fs_new_block2(). This bug resulted in the block bitmap
for the block group in question not having space reserved for the file
system metadata blocks.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
bitmap-optimize
parent
2d34a25f81
commit
5f2e1a81d2
|
@ -55,6 +55,8 @@ static void check_block_uninit(ext2_filsys fs, ext2fs_block_bitmap map,
|
|||
for (i=0; i < fs->super->s_blocks_per_group; i++, blk++)
|
||||
ext2fs_fast_unmark_block_bitmap2(map, blk);
|
||||
|
||||
blk = (group * fs->super->s_blocks_per_group) +
|
||||
fs->super->s_first_data_block;
|
||||
for (i=0; i < fs->super->s_blocks_per_group; i++, blk++) {
|
||||
if ((blk == super_blk) ||
|
||||
(old_desc_blk && old_desc_blocks &&
|
||||
|
|
Loading…
Reference in New Issue