From 4147d9f02959a1358080762679420344c7574fde Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Wed, 6 Apr 2005 14:55:53 -0400 Subject: [PATCH] pass1.c (e2fsck_pass1): If the superblock last mount time (not just the last write time) looks insane, then assume that we can't do the LOW_DTIME checks. --- e2fsck/ChangeLog | 6 ++++++ e2fsck/pass1.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index b4a92fc5..a4e3cf3e 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,3 +1,9 @@ +2005-04-06 Theodore Ts'o + + * pass1.c (e2fsck_pass1): If the superblock last mount time (not + just the last write time) looks insane, then assume that + we can't do the LOW_DTIME checks. + 2005-03-21 Theodore Ts'o * Release of E2fsprogs 1.37 diff --git a/e2fsck/pass1.c b/e2fsck/pass1.c index d01d3589..33729ee9 100644 --- a/e2fsck/pass1.c +++ b/e2fsck/pass1.c @@ -518,7 +518,8 @@ void e2fsck_pass1(e2fsck_t ctx) if (ctx->progress) if ((ctx->progress)(ctx, 1, 0, ctx->fs->group_desc_count)) return; - if (fs->super->s_wtime < fs->super->s_inodes_count) + if ((fs->super->s_wtime < fs->super->s_inodes_count) || + (fs->super->s_mtime < fs->super->s_inodes_count)) busted_fs_time = 1; while (1) {