mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 00:10:15 +00:00
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:
parent
a7fec07348
commit
f86b17ab2b
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user