Whamcloud - gitweb
ChangeLog, problem.c, problem.h:
authorTheodore Ts'o <tytso@mit.edu>
Wed, 13 Dec 2000 18:07:23 +0000 (18:07 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 13 Dec 2000 18:07:23 +0000 (18:07 +0000)
  problem.c, problem.h (PR_0_FS_REV_LEVEL, PR_1_FS_REV_LEVEL): Add new
   problem codes.

e2fsck/ChangeLog
e2fsck/problem.c
e2fsck/problem.h

index 6b40cfd..9ce195c 100644 (file)
@@ -1,3 +1,8 @@
+2000-12-13  Theodore Ts'o  <tytso@valinux.com>
+
+       * problem.c, problem.h (PR_0_FS_REV_LEVEL, PR_1_FS_REV_LEVEL): Add
+               new problem codes.
+
 2000-12-09    <tytso@snap.thunk.org>
 
        * flushb.c: Fix flushb so that it does something other than waste
index 1141eda..5597052 100644 (file)
@@ -254,6 +254,11 @@ static const struct e2fsck_problem problem_table[] = {
          N_("@I @i %i in @o @i list.\n"),
          PROMPT_NONE, 0 },
 
+       /* Filesystem revision is 0, but feature flags are set */
+       { PR_0_FS_REV_LEVEL,
+         "@F has feature flag(s) set, but is a revision 0 @f.  ",
+         PROMPT_FIX, PR_PREEN_OK | PR_NO_OK },
+
        /* Pass 1 errors */
        
        /* Pass 1: Checking inodes, blocks, and sizes */
@@ -517,7 +522,12 @@ static const struct e2fsck_problem problem_table[] = {
        { PR_1_SET_NONZSIZE,
          "Special (device/socket/fifo) @i %i has non-zero size.  ",
          PROMPT_FIX, PR_PREEN_OK },
-         
+
+       /* Filesystem revision is 0, but feature flags are set */
+       { PR_1_FS_REV_LEVEL,
+         "@F has feature flag(s) set, but is a revision 0 @f.  ",
+         PROMPT_FIX, PR_PREEN_OK | PR_NO_OK },
+
        /* Pass 1b errors */
 
        /* Pass 1B: Rescan for duplicate/bad blocks */
index d92dd33..399afd1 100644 (file)
@@ -127,6 +127,9 @@ struct problem_context {
 /* Superblock recovery flag clear - journal needs to be reset */
 #define PR_0_JOURNAL_RESET_PROMPT 0x000019
 
+/* Filesystem revision is 0, but feature flags are set */
+#define PR_0_FS_REV_LEVEL      0x00001A
+
 /* Clearing orphan inode */
 #define PR_0_ORPHAN_CLEAR_INODE                        0x000020
        
@@ -299,6 +302,9 @@ struct problem_context {
 /* Non-zero size on on device, fifo or socket inode */
 #define PR_1_SET_NONZSIZE              0x010032
 
+/* Filesystem revision is 0, but feature flags are set */
+#define PR_1_FS_REV_LEVEL              0x010033
+
 /*
  * Pass 1b errors
  */