]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
ChangeLog, journal.c, problem.c:
authorTheodore Ts'o <tytso@mit.edu>
Fri, 12 Jan 2001 15:30:25 +0000 (15:30 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 12 Jan 2001 15:30:25 +0000 (15:30 +0000)
  journal.c (e2fsck_journal_fix_bad_inode): Set pctx->ino to the bad
   journal number.
  problem.c (PR_0_JOURNAL_BAD_INODE): Use pctx->ino instead of pctx->num
   when printing the bad journal inode number.

e2fsck/ChangeLog
e2fsck/journal.c
e2fsck/problem.c

index c5f4d16b8e8e6e8ddd8e677e7f930d639178c853..79e32c4909515ff63c6ec2c6d42f3020f3c035cd 100644 (file)
@@ -1,3 +1,11 @@
+2001-01-12  Theodore Ts'o  <tytso@valinux.com>
+
+       * journal.c (e2fsck_journal_fix_bad_inode): Set pctx->ino to the
+               bad journal number.
+
+       * problem.c (PR_0_JOURNAL_BAD_INODE): Use pctx->ino instead of
+               pctx->num when printing the bad journal inode number.
+
 2001-01-11    <tytso@snap.thunk.org>
 
        * pass1.c (process_block): Remove dead code which was never
index d350c0ccef0a61e4c35a3a652282ac1defaed7fe..8b49e9c75936c21bf2b58edde3c426f66efa9f65 100644 (file)
@@ -270,6 +270,7 @@ static int e2fsck_journal_fix_bad_inode(e2fsck_t ctx,
 
        if (has_journal || sb->s_journal_inum) {
                /* The journal inode is bogus, remove and force full fsck */
+               pctx->ino = sb->s_journal_inum;
                if (fix_problem(ctx, PR_0_JOURNAL_BAD_INODE, pctx)) {
                        if (has_journal && sb->s_journal_inum)
                                printf("*** ext3 journal has been deleted - "
index 3accd285c6ae0c679c26309f73c1a0d927afb6b5..ac4493ad6639124461d6a12a9d913a50fb1090c3 100644 (file)
@@ -176,7 +176,7 @@ static const struct e2fsck_problem problem_table[] = {
 
        /* Journal inode is invalid */
        { PR_0_JOURNAL_BAD_INODE,
-         N_("@S has a bad ext3 @j (@i %N).\n"),
+         N_("@S has a bad ext3 @j (@i %i).\n"),
          PROMPT_CLEAR, PR_PREEN_OK },
 
        /* Superblock has a journal device (which we can't handle yet) */