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 <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
(cherry picked from commit cdfa21ad5e86184f822496c1a9aa769fa98a8bb1)

Change-Id: I86153deb2dcaea3433b9048b8fc0c458c7ddee30
Reviewed-on: http://gerrit.openafs.org/11505
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
This commit is contained in:
pete scott 2014-09-24 11:49:38 -06:00 committed by Jeffrey Altman
parent 00691e2209
commit 2053fe25bc

View File

@ -957,7 +957,7 @@ AFSQueryStandardInfo( IN PIRP Irp,
Buffer->NumberOfLinks = 1; Buffer->NumberOfLinks = 1;
Buffer->DeletePending = BooleanFlagOn( pCcb->DirectoryCB->Flags, AFS_DIR_ENTRY_PENDING_DELETE); 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; Buffer->EndOfFile = DirectoryCB->ObjectInformation->EndOfFile;