Whamcloud - gitweb
e2fsck.h (E2F_FLAG_RESTARTED): Assign a unique flag bitfield to
authorTheodore Ts'o <tytso@mit.edu>
Thu, 11 Dec 2003 06:00:21 +0000 (01:00 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 11 Dec 2003 06:00:21 +0000 (01:00 -0500)
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
e2fsck/e2fsck.h

index 4b92c1b..b30d4c2 100644 (file)
@@ -1,3 +1,12 @@
+2003-12-10  Theodore Ts'o  <tytso@mit.edu>
+
+       * 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  <tytso@mit.edu>
 
        * badblocks.c, dict.c, ea_refcount.c, ehandler.c, journal.c,
index 695f463..ad27745 100644 (file)
@@ -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