1 file changed, 7 insertions(+) e2fsck/journal.c | 7 +++++++ # HG changeset patch # User tytso@xxxxxxx # Date 1182441546 14400 # Node ID 7a1859d26e58056688629ee2faf2f2ee619a1bf1 # Parent 8c5c3cc3fa06ab7791d1a55c3191a4e63a32c8a5 Write the updated journal inode if s_jnl_blocks was successfully used If the journal inode was corrected from s_jnl_blocks, write the fixed journal inode back to disk. Signed-off-by: Kalpak Shah <kalpak@xxxxxxxxxxxxx> Signed-off-by: Andreas Dilger <adilger@xxxxxxxxxxxxx> diff -r 8c5c3cc3fa06 -r 7a1859d26e58 e2fsck/journal.c --- a/e2fsck/journal.c Thu Jun 21 11:59:06 2007 -0400 +++ b/e2fsck/journal.c Thu Jun 21 11:59:06 2007 -0400 @@ -285,6 +285,13 @@ static errcode_t e2fsck_get_journal(e2fs goto try_backup_journal; } } + if (tried_backup_jnl && !(ctx->options & E2F_OPT_READONLY)) { + retval = ext2fs_write_inode(ctx->fs, sb->s_journal_inum, + &j_inode->i_ext2); + if (retval) + goto errout; + } + journal->j_maxlen = j_inode->i_ext2.i_size / journal->j_blocksize; #ifdef USE_INODE_IO - To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html