From: Theodore Ts'o Date: Wed, 5 May 2004 00:38:17 +0000 (-0400) Subject: unix.c (check_if_skip): If the checkinterval is zero, then X-Git-Tag: E2FSPROGS-1_36~167 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=66fbee8cbbe88e5e14ea98a67c220e6f8ff5deba;p=thirdparty%2Fe2fsprogs.git unix.c (check_if_skip): If the checkinterval is zero, then disregard it when calculating when the next check will take place by e2fsck. --- diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index dd49064ce..5b82955f6 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,3 +1,9 @@ +2004-05-04 Theodore Ts'o + + * unix.c (check_if_skip): If the checkinterval is zero, then + disregard it when calculating when the next check will + take place. + 2004-04-12 Theodore Ts'o * unix.c (is_on_batt): Be more flexible about the name of the ACPI diff --git a/e2fsck/unix.c b/e2fsck/unix.c index 0f9f69639..43ef4c93f 100644 --- a/e2fsck/unix.c +++ b/e2fsck/unix.c @@ -298,7 +298,8 @@ static void check_if_skip(e2fsck_t ctx) if (next_check <= 0) next_check = 1; } - if ((now - fs->super->s_lastcheck) >= fs->super->s_checkinterval) + if (fs->super->s_checkinterval && + ((now - fs->super->s_lastcheck) >= fs->super->s_checkinterval)) next_check = 1; if (next_check <= 5) { if (next_check == 1)