mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 23:40:13 +00:00
Windows: permit offline volume check to be disabled
Setting the registry value to 0 can now be used as a method of disabling the offline volume check. Change-Id: I9fdc4e960efb0a6793316102ce2794c775693da1 Reviewed-on: http://gerrit.openafs.org/5370 Reviewed-by: Jeffrey Altman <jaltman@openafs.org> Tested-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
parent
a5effd9f10
commit
19a5b5e67c
@ -467,7 +467,8 @@ void cm_Daemon(long parm)
|
|||||||
lastDownServerCheck = now - cm_daemonCheckDownInterval/2 + (rand() % cm_daemonCheckDownInterval);
|
lastDownServerCheck = now - cm_daemonCheckDownInterval/2 + (rand() % cm_daemonCheckDownInterval);
|
||||||
lastUpServerCheck = now - cm_daemonCheckUpInterval/2 + (rand() % cm_daemonCheckUpInterval);
|
lastUpServerCheck = now - cm_daemonCheckUpInterval/2 + (rand() % cm_daemonCheckUpInterval);
|
||||||
lastTokenCacheCheck = now - cm_daemonTokenCheckInterval/2 + (rand() % cm_daemonTokenCheckInterval);
|
lastTokenCacheCheck = now - cm_daemonTokenCheckInterval/2 + (rand() % cm_daemonTokenCheckInterval);
|
||||||
lastBusyVolCheck = now - cm_daemonCheckOfflineVolInterval/2 * (rand() % cm_daemonCheckOfflineVolInterval);
|
if (cm_daemonCheckOfflineVolInterval)
|
||||||
|
lastBusyVolCheck = now - cm_daemonCheckOfflineVolInterval/2 * (rand() % cm_daemonCheckOfflineVolInterval);
|
||||||
if (cm_daemonPerformanceTuningInterval)
|
if (cm_daemonPerformanceTuningInterval)
|
||||||
lastPerformanceCheck = now - cm_daemonPerformanceTuningInterval/2 * (rand() % cm_daemonPerformanceTuningInterval);
|
lastPerformanceCheck = now - cm_daemonPerformanceTuningInterval/2 * (rand() % cm_daemonPerformanceTuningInterval);
|
||||||
lastServerRankCheck = now - cm_daemonRankServerInterval/2 * (rand() % cm_daemonRankServerInterval);
|
lastServerRankCheck = now - cm_daemonRankServerInterval/2 * (rand() % cm_daemonRankServerInterval);
|
||||||
@ -592,7 +593,8 @@ void cm_Daemon(long parm)
|
|||||||
now = osi_Time();
|
now = osi_Time();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((bAddrChangeCheck || now > lastBusyVolCheck + cm_daemonCheckOfflineVolInterval) &&
|
if ((bAddrChangeCheck || (cm_daemonCheckOfflineVolInterval &&
|
||||||
|
now > lastBusyVolCheck + cm_daemonCheckOfflineVolInterval)) &&
|
||||||
daemon_ShutdownFlag == 0 &&
|
daemon_ShutdownFlag == 0 &&
|
||||||
powerStateSuspended == 0) {
|
powerStateSuspended == 0) {
|
||||||
lastBusyVolCheck = now;
|
lastBusyVolCheck = now;
|
||||||
|
Loading…
Reference in New Issue
Block a user