+2002-11-08 <tytso@snap.thunk.org>
+
+ * pass1.c (new_table_block), super.c (check_super_block), swapfs.c
+ (swap_filesys): Clear EXT2_FLAG_MASTER_SB_ONLY to make
+ sure the backup superblocks and group descriptors are
+ updated when we make an important change to the
+ superblocks and/or group descriptors. (i.e., generating a
+ UUID, allocating filesystem metadata, or byte-swapping the
+ filesystem.)
+
2002-11-07 Theodore Ts'o <tytso@mit.edu>
* e2fsck.h, unix.c (main, check_mount): Fix e2fsck so that it
return;
}
ext2fs_mark_super_dirty(fs);
+ fs->flags &= ~EXT2_FLAG_MASTER_SB_ONLY;
pctx.blk2 = *new_block;
fix_problem(ctx, (old_block ? PR_1_RELOC_FROM_TO :
PR_1_RELOC_TO), &pctx);
if (fix_problem(ctx, PR_0_ADD_UUID, &pctx)) {
uuid_generate(sb->s_uuid);
ext2fs_mark_super_dirty(fs);
+ fs->flags &= ~EXT2_FLAG_MASTER_SB_ONLY;
}
}
#endif
ext2fs_swap_bitmap(fs->block_map);
fs->flags |= EXT2_FLAG_BB_DIRTY | EXT2_FLAG_IB_DIRTY;
#endif
+ fs->flags &= ~EXT2_FLAG_MASTER_SB_ONLY;
ext2fs_flush(fs);
+ fs->flags |= EXT2_FLAG_MASTER_SB_ONLY;
#ifdef RESOURCE_TRACK
if (ctx->options & E2F_OPT_TIME2)