From 060b5fbf807dca3ce5f977a693ac68e84c03d13e Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Wed, 13 Dec 2000 18:07:23 +0000 Subject: [PATCH] ChangeLog, problem.c, problem.h: problem.c, problem.h (PR_0_FS_REV_LEVEL, PR_1_FS_REV_LEVEL): Add new problem codes. --- e2fsck/ChangeLog | 5 +++++ e2fsck/problem.c | 12 +++++++++++- e2fsck/problem.h | 6 ++++++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index 6b40cfd..9ce195c 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,3 +1,8 @@ +2000-12-13 Theodore Ts'o + + * problem.c, problem.h (PR_0_FS_REV_LEVEL, PR_1_FS_REV_LEVEL): Add + new problem codes. + 2000-12-09 * flushb.c: Fix flushb so that it does something other than waste diff --git a/e2fsck/problem.c b/e2fsck/problem.c index 1141eda..5597052 100644 --- a/e2fsck/problem.c +++ b/e2fsck/problem.c @@ -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 */ diff --git a/e2fsck/problem.h b/e2fsck/problem.h index d92dd33..399afd1 100644 --- a/e2fsck/problem.h +++ b/e2fsck/problem.h @@ -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 */ -- 1.8.3.1