Windows: RDR_RequestFileExtentsAsync set current DV

if the buffer returned from cm_GetBuffer() has an offset that is
beyond the serverLength and it has a "bad" data version, set the
data version to the current value.  This is for debugging clarity.

Change-Id: Icb3ee4accd0219a41813c44428070248245f2549
Reviewed-on: http://gerrit.openafs.org/7315
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
This commit is contained in:
Jeffrey Altman 2012-05-02 17:58:39 -04:00 committed by Jeffrey Altman
parent a7fec07348
commit f86b17ab2b

View File

@ -3299,11 +3299,15 @@ RDR_RequestFileExtentsAsync( IN cm_user_t *userp,
else
minLength = scp->length;
if (!bHaveBuffer &&
LargeIntegerGreaterThanOrEqualTo(bufp->offset, minLength)) {
memset(bufp->datap, 0, cm_data.buf_blockSize);
bufp->dataVersion = scp->dataVersion;
bHaveBuffer = TRUE;
if (LargeIntegerGreaterThanOrEqualTo(bufp->offset, minLength)) {
if (!bHaveBuffer) {
memset(bufp->datap, 0, cm_data.buf_blockSize);
bufp->dataVersion = scp->dataVersion;
bHaveBuffer = TRUE;
}
else if (bufp->dataVersion == CM_BUF_VERSION_BAD) {
bufp->dataVersion = scp->dataVersion;
}
}
else if ((RequestExtentsCB->Flags & AFS_EXTENT_FLAG_CLEAN) &&
ByteOffset.QuadPart <= bufp->offset.QuadPart &&