From 6c7d61da00f10aa228d1da5bcc10ce1d4c044014 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Thu, 11 Dec 2003 01:00:21 -0500 Subject: [PATCH] e2fsck.h (E2F_FLAG_RESTARTED): Assign a unique flag bitfield to E2F_FLAG_RESTARTED. This fixes a bug where if the user specifies an alternate superblock, and the journal needs to be replayed, e2fsck would erroneously assume that journal had been run already without clearing the NEEDS_RECOVERY flag, and bomb out with an error. --- e2fsck/ChangeLog | 9 +++++++++ e2fsck/e2fsck.h | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index 4b92c1bd4..b30d4c2d2 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,3 +1,12 @@ +2003-12-10 Theodore Ts'o + + * e2fsck.h (E2F_FLAG_RESTARTED): Assign a unique flag bitfield to + E2F_FLAG_RESTARTED. This fixes a bug where if the user + specifies an alternate superblock, and the journal needs + to be replayed, e2fsck would erroneously assume that + journal had been run already without clearing the + NEEDS_RECOVERY flag, and bomb out with an error. + 2003-12-07 Theodore Ts'o * badblocks.c, dict.c, ea_refcount.c, ehandler.c, journal.c, diff --git a/e2fsck/e2fsck.h b/e2fsck/e2fsck.h index 695f463b5..ad277453a 100644 --- a/e2fsck/e2fsck.h +++ b/e2fsck/e2fsck.h @@ -162,7 +162,7 @@ struct resource_track { #define E2F_FLAG_JOURNAL_INODE 0x0080 /* Create a new ext3 journal inode */ #define E2F_FLAG_SB_SPECIFIED 0x0100 /* The superblock was explicitly * specified by the user */ -#define E2F_FLAG_RESTARTED 0x0100 /* E2fsck has been restarted */ +#define E2F_FLAG_RESTARTED 0x0200 /* E2fsck has been restarted */ /* * Defines for indicating the e2fsck pass number -- 2.47.3