Whamcloud - gitweb
e2fsck: Add better explanatory message when s_lastcheck is in the future
authorTheodore Ts'o <tytso@mit.edu>
Sat, 7 Jun 2008 16:19:08 +0000 (12:19 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 7 Jun 2008 16:19:08 +0000 (12:19 -0400)
Addresses-Debian-Bug: #446005

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
e2fsck/unix.c

index 6173fc1..a02c666 100644 (file)
@@ -288,6 +288,10 @@ static void check_if_skip(e2fsck_t ctx)
                if (batt && (fs->super->s_mnt_count < 
                             (unsigned) fs->super->s_max_mnt_count*2))
                        reason = 0;
+       } else if (fs->super->s_checkinterval && (ctx->now < lastcheck)) {
+               reason = _(" has filesystem last checked time in the future");
+               if (batt)
+                       reason = 0;
        } else if (fs->super->s_checkinterval &&
                   ((ctx->now - lastcheck) >= 
                    ((time_t) fs->super->s_checkinterval))) {