From 311df05c5e89b0ea447fdbb08a4302f05e2fe664 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Mon, 19 Dec 2005 00:02:47 -0500 Subject: [PATCH] Automatically fix superblock times in the future If the superblock last mount time or last write time is in the future, fix this automatically if e2fsck is in preeen mode, since Debian's boot sequence bogusly doesn't set the time correctly until potentially very late in the bootup process, and this can cause false positives that will cause users' systems to fail to booting. (Addresses Debian Bugs #343662 and #343645) Signed-off-by: "Theodore Ts'o" --- e2fsck/ChangeLog | 10 ++++++++++ e2fsck/problem.c | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index be26eb2d7..0fe4b08c4 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,3 +1,13 @@ +2005-12-18 Theodore Ts'o + + * problem.c (PR_0_FUTURE_SB_LAST_MOUNT, + PR_0_FUTURE_SB_LAST_WRITE): Make these problems things + which can be fixd by preen, since Debian's boot sequence + bogusly doesn't set the time correctly until potentially + very late in the bootup process, and this can cause false + positives that will cause users' systems to fail to + booting. (Addresses Debian Bugs #343662 and #343645) + 2005-12-09 Theodore Ts'o * e2fsck.8.in: Clarify that e2fsck -c does a read-only scan of the diff --git a/e2fsck/problem.c b/e2fsck/problem.c index 357bd8dbf..7d70f5686 100644 --- a/e2fsck/problem.c +++ b/e2fsck/problem.c @@ -335,12 +335,12 @@ static const 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, 0 }, + PROMPT_FIX, PR_PREEN_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, 0 }, + PROMPT_FIX, PR_PREEN_OK }, /* Pass 1 errors */ -- 2.47.3