From: Theodore Ts'o Date: Wed, 6 Apr 2005 18:55:53 +0000 (-0400) Subject: pass1.c (e2fsck_pass1): If the superblock last mount time (not X-Git-Tag: E2FSPROGS-1_38-WIP-0509~35 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=4147d9f02959a1358080762679420344c7574fde;p=tools%2Fe2fsprogs.git 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. --- diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index b4a92fc..a4e3cf3 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 d01d358..33729ee 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) {