mirror of
https://github.com/reactos/reactos.git
synced 2025-04-19 12:08:55 +00:00
[NTFS]
Bugfixing... Part 9/X: - Return the appropriate size for file size. - Round the allocation to cluster size (as requested by the API). This fixes metadata display when enumerating a directory in CMD. What you get now: http://www.heisspiter.net/~Pierre/rostests/NTFS_listing_fixed.png Time to fix all the rest! D'oh! svn path=/trunk/; revision=64833
This commit is contained in:
parent
3b8b4734d6
commit
a0149739ce
1 changed files with 6 additions and 6 deletions
|
@ -183,8 +183,8 @@ NtfsGetDirectoryInformation(PDEVICE_EXTENSION DeviceExt,
|
|||
/* Convert file flags */
|
||||
NtfsFileFlagsToAttributes(FileName->FileAttributes, &Info->FileAttributes);
|
||||
|
||||
Info->EndOfFile.QuadPart = FileName->DataSize;
|
||||
Info->AllocationSize.QuadPart = FileName->AllocatedSize;
|
||||
Info->EndOfFile.QuadPart = FileName->AllocatedSize;
|
||||
Info->AllocationSize.QuadPart = ROUND_UP(FileName->AllocatedSize, DeviceExt->NtfsInfo.BytesPerCluster);
|
||||
|
||||
// Info->FileIndex=;
|
||||
|
||||
|
@ -224,8 +224,8 @@ NtfsGetFullDirectoryInformation(PDEVICE_EXTENSION DeviceExt,
|
|||
/* Convert file flags */
|
||||
NtfsFileFlagsToAttributes(FileName->FileAttributes, &Info->FileAttributes);
|
||||
|
||||
Info->EndOfFile.QuadPart = FileName->DataSize;
|
||||
Info->AllocationSize.QuadPart = FileName->AllocatedSize;
|
||||
Info->EndOfFile.QuadPart = FileName->AllocatedSize;
|
||||
Info->AllocationSize.QuadPart = ROUND_UP(FileName->AllocatedSize, DeviceExt->NtfsInfo.BytesPerCluster);
|
||||
|
||||
// Info->FileIndex=;
|
||||
Info->EaSize = 0;
|
||||
|
@ -266,8 +266,8 @@ NtfsGetBothDirectoryInformation(PDEVICE_EXTENSION DeviceExt,
|
|||
/* Convert file flags */
|
||||
NtfsFileFlagsToAttributes(FileName->FileAttributes, &Info->FileAttributes);
|
||||
|
||||
Info->EndOfFile.QuadPart = FileName->DataSize;
|
||||
Info->AllocationSize.QuadPart = FileName->AllocatedSize;
|
||||
Info->EndOfFile.QuadPart = FileName->AllocatedSize;
|
||||
Info->AllocationSize.QuadPart = ROUND_UP(FileName->AllocatedSize, DeviceExt->NtfsInfo.BytesPerCluster);
|
||||
|
||||
// Info->FileIndex=;
|
||||
Info->EaSize = 0;
|
||||
|
|
Loading…
Reference in a new issue