From: Jeffrey Altman Date: Wed, 24 Sep 2014 22:12:31 +0000 (-0400) Subject: Windows: report AllocationSize in 1KB increments X-Git-Tag: upstream/1.8.0_pre1^2~570 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d9ca3050c697a9d6b623be874ea46aaf2312ad87;p=packages%2Fo%2Fopenafs.git Windows: report AllocationSize in 1KB increments Windows expects storage to be allocated in increments of some block size. The AFS servers allocate in 1K units so lets report that to Windows. Change-Id: I64ad1844339357733933cd9e360551fdcd450146 Reviewed-on: http://gerrit.openafs.org/11490 Tested-by: BuildBot Reviewed-by: Jeffrey Altman --- diff --git a/src/WINNT/afsrdr/user/RDRFunction.c b/src/WINNT/afsrdr/user/RDRFunction.c index a80db3b20..f1c6b594a 100644 --- a/src/WINNT/afsrdr/user/RDRFunction.c +++ b/src/WINNT/afsrdr/user/RDRFunction.c @@ -532,7 +532,8 @@ RDR_PopulateCurrentEntry( IN AFSDirEnumEntry * pCurrentEntry, pCurrentEntry->ChangeTime = pCurrentEntry->CreationTime; pCurrentEntry->EndOfFile = scp->length; - pCurrentEntry->AllocationSize = scp->length; + pCurrentEntry->AllocationSize.QuadPart = + ((scp->length.QuadPart/1024)+1)*1024; if (bMustFake) { switch (scp->fileType) {