#include <string.h>
#include <stdlib.h>
+#include "afsd.h"
#include <osi.h>
#include <rx_pthread.h>
-#include "afsd.h"
#include <WINNT/syscfg.h>
#include <WINNT/afsreg.h>
#include <../afsrdr/kif.h>
lock_ReleaseWrite(&cm_scacheLock);
+ /* reset the No 64-bit flag on the server */
+ cm_SetServerNo64Bit(tsp, 0);
+
/* we're done with the server structure */
if (tsp)
cm_PutServer(tsp);
cep->Length.high = scp->length.HighPart;
cep->Length.low = scp->length.LowPart;
#else
- cep->Length = ((afs_int64)scp->length.HighPart)<<32 | scp->length.LowPart;
+ cep->Length = (afs_int64) scp->length.QuadPart;
#endif
cep->DataVersion = scp->dataVersion;
cep->callback = afs_data_pointer_to_int32(scp->cbServerp);
dataBytes = 1 * sizeof(afs_int32);
dataBuffP = (afs_int32 *) osi_Alloc(dataBytes);
- dataBuffP[0] = CAPABILITY_ERRORTRANS;
+ dataBuffP[0] = CLIENT_CAPABILITY_ERRORTRANS;
capabilities->Capabilities_len = dataBytes / sizeof(afs_int32);
capabilities->Capabilities_val = dataBuffP;
*serverVersion = AFS_CLIENT_RETRIEVAL_FIRST_EDITION;
#ifdef DEBUG
#ifndef SIZE_MAX
-#define SIZE_MAX sizeof(afs_int32)
+#define SIZE_MAX UINT_MAX
#endif
osi_assert(allocsize < SIZE_MAX);
#endif
/* otherwise, we have to make an RPC to get the status */
sflags = CM_SCACHESYNC_FETCHSTATUS | CM_SCACHESYNC_GETCALLBACK;
- cm_SyncOp(scp, NULL, NULL, NULL, 0, sflags);
+ cm_SyncOp(scp, NULL, userp, reqp, 0, sflags);
cm_StartCallbackGrantingCall(scp, &cbr);
sfid = scp->fid;
lock_ReleaseMutex(&scp->mx);