From: Jeffrey Altman Date: Tue, 5 Aug 2014 05:40:22 +0000 (-0400) Subject: Windows: do not forget cm_SyncOpDone X-Git-Tag: upstream/1.8.0_pre1^2~600 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=bcaaf4640d06c761b798c1eb2c82f81f21ec78d8;p=packages%2Fo%2Fopenafs.git Windows: do not forget cm_SyncOpDone If cm_SyncOp was called, then cm_SyncOpDone must be called. By goto out of the loop, the cm_SyncOpDone call was skipped. Change-Id: I20105ec8708c19eecbf215258ada0779cd705f73 Reviewed-on: http://gerrit.openafs.org/11414 Tested-by: BuildBot Reviewed-by: Jeffrey Altman --- diff --git a/src/WINNT/afsd/cm_vnodeops.c b/src/WINNT/afsd/cm_vnodeops.c index d031b10d0..cc0692c0a 100644 --- a/src/WINNT/afsd/cm_vnodeops.c +++ b/src/WINNT/afsd/cm_vnodeops.c @@ -2889,8 +2889,12 @@ long cm_SetLength(cm_scache_t *scp, osi_hyper_t *sizep, cm_user_t *userp, * than where we're truncating the file, set truncPos to this * new value. */ - if (!shrinking) + if (!shrinking) { + cm_SyncOpDone(scp, NULL, + CM_SCACHESYNC_NEEDCALLBACK | CM_SCACHESYNC_GETSTATUS + | CM_SCACHESYNC_SETSTATUS | CM_SCACHESYNC_SETSIZE); goto startover; + } if (!(scp->mask & CM_SCACHEMASK_TRUNCPOS) || LargeIntegerLessThan(*sizep, scp->length)) { /* set trunc pos */