]> git.michaelhowe.org Git - packages/o/openafs.git/commit
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 12:49:03 +0000 (05:49 -0700)
commitdd8b624cf73c98d8edab2b253d40b4c2589d44d0
treeec63f4a7f8e7180b63562370c4211ac5bdcdf853
parent61414ab7a8adb3854dcd08aeaf5c642aea8477eb
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: I65534b78842b4887d2fde67162a9d854437001ed
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>
Reviewed-on: http://gerrit.openafs.org/4598
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/WINNT/afsd/cm_volume.c