Whamcloud - gitweb
journal.c (e2fsck_move_ext3_journal): When moving the journal or
authorTheodore Ts'o <tytso@mit.edu>
Thu, 21 Aug 2003 12:59:38 +0000 (08:59 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 21 Aug 2003 12:59:38 +0000 (08:59 -0400)
backing up the journal inode, make sure it gets written to
all the superblocks.

e2fsck/ChangeLog
e2fsck/journal.c

index 2a8b9c8..faea02b 100644 (file)
@@ -1,3 +1,9 @@
+2003-08-21  Theodore Ts'o  <tytso@mit.edu>
+
+       * 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  <tytso@mit.edu>
 
        * journal.c (e2fsck_move_ext3_journal): If the superblock's backup
index 8ef4a36..615bd3e 100644 (file)
@@ -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)