From 27479eb2270c344a0042b4c492337b67a547c393 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Thu, 21 Aug 2003 08:59:38 -0400 Subject: [PATCH] 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. --- e2fsck/ChangeLog | 6 ++++++ e2fsck/journal.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index 2a8b9c8..faea02b 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,3 +1,9 @@ +2003-08-21 Theodore Ts'o + + * 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. + 2003-08-20 Theodore Ts'o * journal.c (e2fsck_move_ext3_journal): If the superblock's backup diff --git a/e2fsck/journal.c b/e2fsck/journal.c index 8ef4a36..615bd3e 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) -- 1.8.3.1