aboutsummaryrefslogtreecommitdiff
path: root/e2fsck/swapfs.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2002-11-08 11:10:28 -0500
committerTheodore Ts'o <tytso@mit.edu>2002-11-08 11:10:28 -0500
commit299d742427776629ef07b4563f41a4e00fc23aa0 (patch)
tree5e8a2d25e9b899420a28e361393bfe89392f035d /e2fsck/swapfs.c
parentbfd418832d46da1767517b40a7857de449ea03fe (diff)
downloade2fsprogs-299d742427776629ef07b4563f41a4e00fc23aa0.tar.gz
Change e2fsck to force out changes to the backup copies of the
superblock and block group descriptors when important changes are made to those data structures.
Diffstat (limited to 'e2fsck/swapfs.c')
-rw-r--r--e2fsck/swapfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/e2fsck/swapfs.c b/e2fsck/swapfs.c
index b59079c4..de71369f 100644
--- a/e2fsck/swapfs.c
+++ b/e2fsck/swapfs.c
@@ -254,7 +254,9 @@ void swap_filesys(e2fsck_t ctx)
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)