summaryrefslogtreecommitdiff
path: root/e2fsck/super.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-08-08 10:14:48 -0400
committerTheodore Ts'o <tytso@mit.edu>2009-08-08 10:14:48 -0400
commitfe26a55ac923f4cce17c27ef51de84d2e3b6eebb (patch)
tree4a211e21c187f2fecdb99d7d9c081591683cc6a1 /e2fsck/super.c
parentbf3941aac389f1de6ce2008f818b6350d1fdd764 (diff)
downloade2fsprogs-fe26a55ac923f4cce17c27ef51de84d2e3b6eebb.tar.gz
e2fsck: Fix and enhance superblock dates in future problem reports
Fixed a bug where e2fsck would report that last mount time was in the future when it was really the last write time that was in the future. Also, since people can't seem to believe that (a) their distribution has buggy init scripts, or (b) their CMOS/RTC clock or backup battery is dead, print the incorrect time and the current system time. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'e2fsck/super.c')
-rw-r--r--e2fsck/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/e2fsck/super.c b/e2fsck/super.c
index ef29aa52..22029674 100644
--- a/e2fsck/super.c
+++ b/e2fsck/super.c
@@ -831,7 +831,7 @@ void check_super_block(e2fsck_t ctx)
}
if (fs->super->s_wtime > (__u32) ctx->now) {
pctx.num = fs->super->s_wtime;
- problem = PR_0_FUTURE_SB_LAST_MOUNT;
+ problem = PR_0_FUTURE_SB_LAST_WRITE;
if (fs->super->s_wtime <= (__u32) ctx->now + ctx->time_fudge)
problem = PR_0_FUTURE_SB_LAST_MOUNT_FUDGED;
if (fix_problem(ctx, problem, &pctx)) {