From 68eb092dda44ea24d490085f6941e50eebfd674f Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sat, 7 Jun 2008 12:19:08 -0400 Subject: [PATCH] e2fsck: Add better explanatory message when s_lastcheck is in the future Addresses-Debian-Bug: #446005 Signed-off-by: "Theodore Ts'o" --- e2fsck/unix.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/e2fsck/unix.c b/e2fsck/unix.c index 6173fc1..a02c666 100644 --- a/e2fsck/unix.c +++ b/e2fsck/unix.c @@ -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))) { -- 1.8.3.1