From 2053fe25bc9fc9487478939743940827b64c71d9 Mon Sep 17 00:00:00 2001 From: pete scott Date: Wed, 24 Sep 2014 11:49:38 -0600 Subject: [PATCH] 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. Reviewed-on: http://gerrit.openafs.org/11491 Tested-by: BuildBot Reviewed-by: Jeffrey Altman (cherry picked from commit cdfa21ad5e86184f822496c1a9aa769fa98a8bb1) Change-Id: I86153deb2dcaea3433b9048b8fc0c458c7ddee30 Reviewed-on: http://gerrit.openafs.org/11505 Tested-by: BuildBot Reviewed-by: Jeffrey Altman --- src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp b/src/WINNT/afsrdr/kernel/lib/AFSFileInfo.cpp index 48fb3fd954..020a8c6457 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;