summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2005-12-19 00:02:47 -0500
committerTheodore Ts'o <tytso@mit.edu>2005-12-19 00:02:47 -0500
commit311df05c5e89b0ea447fdbb08a4302f05e2fe664 (patch)
treedb2501c2e187ab879c4abee743f8613ac89612d7
parent6f71cb2fdeca2966d14b5ff7f4682df77220575c (diff)
downloade2fsprogs-311df05c5e89b0ea447fdbb08a4302f05e2fe664.tar.gz
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>
-rw-r--r--e2fsck/ChangeLog10
-rw-r--r--e2fsck/problem.c4
2 files changed, 12 insertions, 2 deletions
diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog
index be26eb2d..0fe4b08c 100644
--- a/e2fsck/ChangeLog
+++ b/e2fsck/ChangeLog
@@ -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
diff --git a/e2fsck/problem.c b/e2fsck/problem.c
index 357bd8db..7d70f568 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 */