From: Jeffrey Altman Date: Wed, 8 May 2013 18:10:01 +0000 (-0400) Subject: Windows: RDR_GetVolumeInfo do not always return success X-Git-Tag: upstream/1.8.0_pre1^2~1170 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=2608ce67f1ba5ed1ed63525fad90db9d67547ec6;p=packages%2Fo%2Fopenafs.git Windows: RDR_GetVolumeInfo do not always return success If the call failed because all servers are down or all instances of the volume are offline or busy, tell the caller. Do not return fake data. Change-Id: I4e89cefba19161c7d75cfdfd04a1cf7dfc2398f4 Reviewed-on: http://gerrit.openafs.org/9882 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/WINNT/afsrdr/user/RDRFunction.c b/src/WINNT/afsrdr/user/RDRFunction.c index 982faa674..9d549a49c 100644 --- a/src/WINNT/afsrdr/user/RDRFunction.c +++ b/src/WINNT/afsrdr/user/RDRFunction.c @@ -5999,7 +5999,10 @@ RDR_GetVolumeInfo( IN cm_user_t *userp, pResultCB->AvailableAllocationUnits.QuadPart = volStat.PartBlocksAvail; } } - } else { + } else if ( code != CM_ERROR_ALLBUSY && + code != CM_ERROR_ALLOFFLINE && + code != CM_ERROR_ALLDOWN) + { /* * Lie about the available space. Out of quota errors will need * detected when the file server rejects the store data.