Windows: avoid vldb lookup race with network stack
authorJeffrey Altman <jaltman@your-file-system.com>
Sun, 28 Jun 2015 18:56:47 +0000 (14:56 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Thu, 24 Sep 2015 04:20:31 +0000 (00:20 -0400)
commit653647e8617d4fc3e7721832ebdd1f1e9057e9ac
tree0b00f7b5f4a066279de6b4858dabd1b599cf5f16
parentaf957c35e940aa80fda4dd42ebf92f7e7ed18f3b
Windows: avoid vldb lookup race with network stack

If a VLDB query attempt occurs when there is no current cell db server
list then the VLDB query won't actually occur but the last query time
would be set.  This prevents a query from taking place again on the volume
for 60 seconds.  If the volume in question is the root.cell volume then
the redirector will be forced to return device not ready for the share
(aka \\afs\cell).

Check for a failure of cm_UpdateCell() and only set the last update time
for the volume if there was success or if the VLDB responded with volume
unknown.

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