mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
Windows: RDR_CleanupFileEntry restrict extent claw back
Only demand that extents be returned by the afs redirector if this cleanup is the last open handle or the redirector has requested that the file be flushed to the file server. Change-Id: I03ddcd153d2ded5fc805148a192234742d20b29e Reviewed-on: http://gerrit.openafs.org/6394 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
f6c85f40c0
commit
6cd09ca2e6
@ -1734,7 +1734,9 @@ RDR_CleanupFileEntry( IN cm_user_t *userp,
|
||||
}
|
||||
cm_SyncOpDone(scp, NULL, CM_SCACHESYNC_NEEDCALLBACK | CM_SCACHESYNC_GETSTATUS);
|
||||
|
||||
if (scp->redirBufCount > 0) {
|
||||
if ((bLastHandle || bFlushFile) &&
|
||||
scp->redirBufCount > 0)
|
||||
{
|
||||
LARGE_INTEGER heldExtents;
|
||||
AFSFileExtentCB extentList[1024];
|
||||
DWORD extentCount = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user