From: Jeffrey Altman Date: Sat, 14 Jan 2012 15:44:56 +0000 (-0500) Subject: Windows: disable memory extent interface X-Git-Tag: upstream/1.8.0_pre1^2~2829 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=20151a869911a98f0938d74ae6096f3308d7ec01;p=packages%2Fo%2Fopenafs.git Windows: disable memory extent interface There have been reports that the memory extent interface which is used when NonPersistentCache is active can lead to data corruption. Change-Id: I3a8acae0648a67534e46c73ef1dcbf7f939a558d Reviewed-on: http://gerrit.openafs.org/6557 Tested-by: BuildBot Tested-by: Jeffrey Altman Reviewed-by: Jeffrey Altman --- diff --git a/src/WINNT/afsrdr/user/RDRFunction.c b/src/WINNT/afsrdr/user/RDRFunction.c index 7d3d9e845..2b482ed37 100644 --- a/src/WINNT/afsrdr/user/RDRFunction.c +++ b/src/WINNT/afsrdr/user/RDRFunction.c @@ -118,6 +118,11 @@ RDR_SetInitParams( OUT AFSRedirectorInitInfo **ppRedirInitInfo, OUT DWORD * pRed MEMORYSTATUSEX memStatus; DWORD maxMemoryCacheSize; +#if 0 + /* + * For now disable the memory extent interface because there + * have been reports of data corruption. + */ memStatus.dwLength = sizeof(memStatus); if (GlobalMemoryStatusEx(&memStatus)) { /* @@ -136,6 +141,9 @@ RDR_SetInitParams( OUT AFSRedirectorInitInfo **ppRedirInitInfo, OUT DWORD * pRed */ maxMemoryCacheSize = 65536; } +#else + maxMemoryCacheSize = 0; +#endif *pRedirInitInfoLen = (DWORD) (sizeof(AFSRedirectorInitInfo) + (cm_CachePathLen + TempPathLen) * sizeof(WCHAR)); *ppRedirInitInfo = (AFSRedirectorInitInfo *)malloc(*pRedirInitInfoLen);