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" <tytso@mit.edu>
bitmap-optimize
Theodore Ts'o 2005-12-19 00:02:47 -05:00
parent 6f71cb2fde
commit 311df05c5e
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,13 @@
2005-12-18 Theodore Ts'o <tytso@mit.edu>
* 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 <tytso@mit.edu>
* e2fsck.8.in: Clarify that e2fsck -c does a read-only scan of the

View File

@ -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 */