Commit 424cb7b6 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

Bug fix; we were incorrectly moving the block and inode bitmaps

for sparse superblock filesystems.  (Address Debian bug #174766)
parent ed78c021
2003-03-06 <tytso@mit.edu>
* resize2fs.c (blocks_to_move): Bug fix; we were incorrectly
moving the block and inode bitmaps for sparse superblock
filesystems. (Address Debian bug #174766)
2002-11-09 Theodore Ts'o <tytso@mit.edu>
* Release of E2fsprogs 1.32
......
......@@ -656,9 +656,12 @@ static errcode_t blocks_to_move(ext2_resize_t rfs)
if (!(fs->super->s_feature_incompat &
EXT2_FEATURE_INCOMPAT_META_BG) ||
(meta_bg < fs->super->s_first_meta_bg)) {
for (blk = group_blk+1;
blk < group_blk + 1 + new_blocks; blk++)
mark_fs_metablock(rfs, meta_bmap, i, blk);
if (has_super) {
for (blk = group_blk+1;
blk < group_blk + 1 + new_blocks; blk++)
mark_fs_metablock(rfs, meta_bmap,
i, blk);
}
} else {
if (has_super)
has_super = 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment