From d9ca3050c697a9d6b623be874ea46aaf2312ad87 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Wed, 24 Sep 2014 18:12:31 -0400 Subject: [PATCH] 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 --- src/WINNT/afsrdr/user/RDRFunction.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.39.5