Whamcloud - gitweb
unix.c (check_if_skip): If the checkinterval is zero, then
authorTheodore Ts'o <tytso@mit.edu>
Wed, 5 May 2004 00:38:17 +0000 (20:38 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 5 May 2004 00:38:17 +0000 (20:38 -0400)
disregard it when calculating when the next check will
take place by e2fsck.

e2fsck/ChangeLog
e2fsck/unix.c

index dd49064..5b82955 100644 (file)
@@ -1,3 +1,9 @@
+2004-05-04  Theodore Ts'o  <tytso@mit.edu>
+
+       * 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  <tytso@mit.edu>
 
        * unix.c (is_on_batt): Be more flexible about the name of the ACPI
index 0f9f696..43ef4c9 100644 (file)
@@ -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)