journal superblock, set the EXT2_ERROR_FS flag in the
filesystem superblock after the journal is run.
+2001-08-07 Theodore Tso <tytso@valinux.com>
+
+ * journal.c (recover_ext3_journal): If s_errno is set in the
+ journal superblock, set the EXT2_ERROR_FS flag in the
+ filesystem superblock after the journal is run.
+
2001-08-04 Andreas Dilger <root@lynx.adilger.int>
* message.c: Change comments for %D and %d expansion in e2fsck
goto errout;
retval = -journal_recover(journal);
+ if (retval)
+ goto errout;
+
+ if (journal->j_superblock->s_errno) {
+ ctx->fs->super->s_state |= EXT2_ERROR_FS;
+ ext2fs_mark_super_dirty(ctx->fs);
+ journal->j_superblock->s_errno = 0;
+ mark_buffer_dirty(journal->j_sb_buffer, 1);
+ }
+
errout:
e2fsck_journal_release(ctx, journal, 1, 0);
return retval;