]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Automatically fix superblock times in the future
authorTheodore Ts'o <tytso@mit.edu>
Mon, 19 Dec 2005 05:02:47 +0000 (00:02 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 19 Dec 2005 05:02:47 +0000 (00:02 -0500)
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>
e2fsck/ChangeLog
e2fsck/problem.c

index be26eb2d7b7eaadac9e547989264c68d7aa1819a..0fe4b08c4da86dcc6258012e9e9e138df3e91ca8 100644 (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
index 357bd8dbf2e89d534e780f1be6d391984cb985f6..7d70f5686f97196e584fca7ade628b2708ce4348 100644 (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 */