From d006b8cee78fc415f7c5666af41afdd6ceda42a1 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sun, 23 Sep 2007 08:20:51 -0400 Subject: [PATCH] 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" --- e2fsck/problem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. "), -- 1.8.3.1