Whamcloud - gitweb
pass1.c (e2fsck_pass1): If the superblock last mount time (not
authorTheodore Ts'o <tytso@mit.edu>
Wed, 6 Apr 2005 18:55:53 +0000 (14:55 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 6 Apr 2005 18:55:53 +0000 (14:55 -0400)
just the last write time) looks insane, then assume that
we can't do the LOW_DTIME checks.

e2fsck/ChangeLog
e2fsck/pass1.c

index b4a92fc..a4e3cf3 100644 (file)
@@ -1,3 +1,9 @@
+2005-04-06  Theodore Ts'o  <tytso@mit.edu>
+
+       * 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  <tytso@mit.edu>
 
        * Release of E2fsprogs 1.37
index d01d358..33729ee 100644 (file)
@@ -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) {