From: Theodore Ts'o Date: Thu, 11 Dec 2003 06:00:21 +0000 (-0500) Subject: e2fsck.h (E2F_FLAG_RESTARTED): Assign a unique flag bitfield to X-Git-Tag: E2FSPROGS-1_35-WIP-0131~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c7d61da00f10aa228d1da5bcc10ce1d4c044014;p=thirdparty%2Fe2fsprogs.git 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. --- 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