]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Windows: cm_daemonCheckOfflineVol fix
authorJeffrey Altman <jaltman@your-file-system.com>
Wed, 20 Jul 2011 18:18:25 +0000 (14:18 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Fri, 22 Jul 2011 15:55:08 +0000 (08:55 -0700)
When computing whether or not to perform an offline volume
check it is critical that the 'lastBusyVolCheck' variable
be assigned the current time instead of 'lastVolCheck'.
By setting the wrong variable a new offline volume check is
performed every 10 seconds which is undesireable.

Change-Id: I509cde64a8b51ce1846f37047a574409ff248978
Reviewed-on: http://gerrit.openafs.org/5054
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/afsd/cm_daemon.c

index 97cddd6784d125426feb26dc8f704841902f12c4..59f1ae4af15978b6ee5b449da2b0037cec826d2a 100644 (file)
@@ -586,7 +586,7 @@ void cm_Daemon(long parm)
         if ((bAddrChangeCheck || now > lastBusyVolCheck + cm_daemonCheckOfflineVolInterval) &&
             daemon_ShutdownFlag == 0 &&
             powerStateSuspended == 0) {
-            lastVolCheck = now;
+            lastBusyVolCheck = now;
             cm_CheckOfflineVolumes();
             if (daemon_ShutdownFlag == 1)
                 break;