Windows: Fix caching of non-existing vols
authorJeffrey Altman <jaltman@your-file-system.com>
Sun, 1 May 2011 04:11:13 +0000 (00:11 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Mon, 2 May 2011 03:41:34 +0000 (20:41 -0700)
commit66db3f38da5527d67631d85fd3ff5a9c77cc1f11
tree4c953ae15d1b3c6c717e6993fb67e935a8884f5e
parent1096c2db638052c5ddcc6f6a01a1513d947a7268
Windows: Fix caching of non-existing vols

In cm_UpdateVolumeLocation() the conditional that would
trigger the immediate return of CM_ERROR_NOSUCHVOLUME
was backwards which prevented the caching from working.

cm_CheckOfflineVolumes() is called by the daemon thread
to reset the status of offline volumes.  Non-existing
volumes are by definition offline and cannot be brought
online.  Therefore, the cm_CheckOfflineVolumes() function
should skip volumes with the CM_VOLUMEFLAG_NOEXIST flag
set.

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