]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
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 2a8b9c84081bd8fd4981e15b3703865f1123c321..faea02b962f8cbf898f237334611ba3db0c60f7c 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 8ef4a3665c53f9a7be9b57b5c56ae4461e32bf39..615bd3ea08dbfd96cf8aecd26d2c19a8b2d8e2d9 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)