From: Theodore Ts'o Date: Sat, 7 Jun 2008 16:19:08 +0000 (-0400) Subject: e2fsck: Add better explanatory message when s_lastcheck is in the future X-Git-Tag: v1.41-WIP-0617~14 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=68eb092dda44ea24d490085f6941e50eebfd674f;p=tools%2Fe2fsprogs.git e2fsck: Add better explanatory message when s_lastcheck is in the future Addresses-Debian-Bug: #446005 Signed-off-by: "Theodore Ts'o" --- 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))) {