From: pete scott Date: Wed, 24 Sep 2014 17:49:38 +0000 (-0600) Subject: Windows: Use the allocation size from the service X-Git-Tag: upstream/1.8.0_pre1^2~569 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=cdfa21ad5e86184f822496c1a9aa769fa98a8bb1;p=packages%2Fo%2Fopenafs.git Windows: Use the allocation size from the service The prior patchset modified the service AllocationSize return value to count the number of 1KB units. Use the value from the service without modification. This corrects an inconsistency in the FileStandardInformation response. Change-Id: I9a5f0a4f43aa12de903875b6ed4c5493e37b0163 Reviewed-on: http://gerrit.openafs.org/11491 Tested-by: BuildBot Reviewed-by: Jeffrey Altman --- diff --git a/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp b/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp index 48fb3fd95..020a8c645 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp @@ -957,7 +957,7 @@ AFSQueryStandardInfo( IN PIRP Irp, Buffer->NumberOfLinks = 1; Buffer->DeletePending = BooleanFlagOn( pCcb->DirectoryCB->Flags, AFS_DIR_ENTRY_PENDING_DELETE); - Buffer->AllocationSize.QuadPart = (ULONGLONG)((DirectoryCB->ObjectInformation->AllocationSize.QuadPart/PAGE_SIZE) + 1) * PAGE_SIZE; + Buffer->AllocationSize.QuadPart = DirectoryCB->ObjectInformation->AllocationSize.QuadPart; Buffer->EndOfFile = DirectoryCB->ObjectInformation->EndOfFile;