]> 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>
Tue, 2 Aug 2011 15:00:45 +0000 (08:00 -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.

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>
(cherry picked from 0783b8f3821f59004146b4c34a53189ada178d70)

Change-Id: I18617371d20798a923c5712188a229633ff43519
Reviewed-on: http://gerrit.openafs.org/5133
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/afsd/cm_daemon.c

index dbe81baf210df7ffbd8acf376a0c690a12024baf..1a158bd9e85eec4de7203b476dc29d88d2e145fd 100644 (file)
@@ -548,7 +548,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;