]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
e2fsck: Don't mark the filesystem invalid because of time errors
authorTheodore Ts'o <tytso@mit.edu>
Sun, 23 Sep 2007 12:20:51 +0000 (08:20 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 23 Sep 2007 12:20:51 +0000 (08:20 -0400)
If superblock mount time or last write time is in the future, and the
user refuses to fix the problem, don't mark the filesystem as being
invalid and needing to be checked.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/problem.c

index 0b6fd39c65e1459a1fb6cd32cd8bbd448c020de6..7c3ebea9bd3c94d9d1db1e2f3c24e6f4b1ce31e4 100644 (file)
@@ -335,12 +335,12 @@ static struct e2fsck_problem problem_table[] = {
        /* Last mount time is in the future */
        { PR_0_FUTURE_SB_LAST_MOUNT,
          N_("@S last mount time is in the future.  "),
-         PROMPT_FIX, PR_PREEN_OK },
+         PROMPT_FIX, PR_PREEN_OK | PR_NO_OK },
 
        /* Last write time is in the future */
        { PR_0_FUTURE_SB_LAST_WRITE,
          N_("@S last write time is in the future.  "),
-         PROMPT_FIX, PR_PREEN_OK },
+         PROMPT_FIX, PR_PREEN_OK | PR_NO_OK },
 
        { PR_0_EXTERNAL_JOURNAL_HINT,
          N_("@S hint for external superblock @s %X.  "),