summaryrefslogtreecommitdiff
path: root/e2fsck/journal.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2003-08-21 08:59:38 -0400
committerTheodore Ts'o <tytso@mit.edu>2003-08-21 08:59:38 -0400
commit27479eb2270c344a0042b4c492337b67a547c393 (patch)
tree8ae52d9705f2381592122692f7837d30c9e8ef9c /e2fsck/journal.c
parent91a7766ace2b9efc8bb65444784d7512dd628bdd (diff)
downloade2fsprogs-27479eb2270c344a0042b4c492337b67a547c393.tar.gz
journal.c (e2fsck_move_ext3_journal): When moving the journal or
backing up the journal inode, make sure it gets written to all the superblocks.
Diffstat (limited to 'e2fsck/journal.c')
-rw-r--r--e2fsck/journal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/e2fsck/journal.c b/e2fsck/journal.c
index 8ef4a366..615bd3ea 100644
--- a/e2fsck/journal.c
+++ b/e2fsck/journal.c
@@ -865,6 +865,7 @@ void e2fsck_move_ext3_journal(e2fsck_t ctx)
sb->s_jnl_blocks[16] = inode.i_size;
sb->s_jnl_backup_type = EXT3_JNL_BACKUP_BLOCKS;
ext2fs_mark_super_dirty(fs);
+ fs->flags &= ~EXT2_FLAG_MASTER_SB_ONLY;
}
}
@@ -921,6 +922,7 @@ void e2fsck_move_ext3_journal(e2fsck_t ctx)
goto err_out;
sb->s_journal_inum = EXT2_JOURNAL_INO;
ext2fs_mark_super_dirty(fs);
+ fs->flags &= ~EXT2_FLAG_MASTER_SB_ONLY;
inode.i_links_count = 0;
inode.i_dtime = time(0);
if ((retval = ext2fs_write_inode(fs, ino, &inode)) != 0)