From: Theodore Ts'o Date: Sun, 23 Sep 2007 12:20:51 +0000 (-0400) Subject: e2fsck: Don't mark the filesystem invalid because of time errors X-Git-Tag: v1.40.3~20 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=d006b8cee78fc415f7c5666af41afdd6ceda42a1;p=tools%2Fe2fsprogs.git e2fsck: Don't mark the filesystem invalid because of time errors 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" --- diff --git a/e2fsck/problem.c b/e2fsck/problem.c index 0b6fd39..7c3ebea 100644 --- a/e2fsck/problem.c +++ b/e2fsck/problem.c @@ -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. "),