mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 15:43:00 +00:00
[NTFS]
Properly return allocation size on directory enum svn path=/trunk/; revision=68353
This commit is contained in:
parent
64379e8f3a
commit
fb0aea8099
1 changed files with 3 additions and 6 deletions
|
@ -135,8 +135,7 @@ NtfsGetDirectoryInformation(PDEVICE_EXTENSION DeviceExt,
|
||||||
/* Convert file flags */
|
/* Convert file flags */
|
||||||
NtfsFileFlagsToAttributes(FileName->FileAttributes | StdInfo->FileAttribute, &Info->FileAttributes);
|
NtfsFileFlagsToAttributes(FileName->FileAttributes | StdInfo->FileAttribute, &Info->FileAttributes);
|
||||||
|
|
||||||
Info->EndOfFile.QuadPart = NtfsGetFileSize(DeviceExt, FileRecord, L"", 0, NULL);
|
Info->EndOfFile.QuadPart = NtfsGetFileSize(DeviceExt, FileRecord, L"", 0, (PULONGLONG)&Info->AllocationSize.QuadPart);
|
||||||
Info->AllocationSize.QuadPart = ROUND_UP(Info->EndOfFile.QuadPart, DeviceExt->NtfsInfo.BytesPerCluster);
|
|
||||||
|
|
||||||
Info->FileIndex = MFTIndex;
|
Info->FileIndex = MFTIndex;
|
||||||
|
|
||||||
|
@ -185,8 +184,7 @@ NtfsGetFullDirectoryInformation(PDEVICE_EXTENSION DeviceExt,
|
||||||
/* Convert file flags */
|
/* Convert file flags */
|
||||||
NtfsFileFlagsToAttributes(FileName->FileAttributes | StdInfo->FileAttribute, &Info->FileAttributes);
|
NtfsFileFlagsToAttributes(FileName->FileAttributes | StdInfo->FileAttribute, &Info->FileAttributes);
|
||||||
|
|
||||||
Info->EndOfFile.QuadPart = NtfsGetFileSize(DeviceExt, FileRecord, L"", 0, NULL);
|
Info->EndOfFile.QuadPart = NtfsGetFileSize(DeviceExt, FileRecord, L"", 0, (PULONGLONG)&Info->AllocationSize.QuadPart);
|
||||||
Info->AllocationSize.QuadPart = ROUND_UP(Info->EndOfFile.QuadPart, DeviceExt->NtfsInfo.BytesPerCluster);
|
|
||||||
|
|
||||||
Info->FileIndex = MFTIndex;
|
Info->FileIndex = MFTIndex;
|
||||||
Info->EaSize = 0;
|
Info->EaSize = 0;
|
||||||
|
@ -250,8 +248,7 @@ NtfsGetBothDirectoryInformation(PDEVICE_EXTENSION DeviceExt,
|
||||||
/* Convert file flags */
|
/* Convert file flags */
|
||||||
NtfsFileFlagsToAttributes(FileName->FileAttributes | StdInfo->FileAttribute, &Info->FileAttributes);
|
NtfsFileFlagsToAttributes(FileName->FileAttributes | StdInfo->FileAttribute, &Info->FileAttributes);
|
||||||
|
|
||||||
Info->EndOfFile.QuadPart = NtfsGetFileSize(DeviceExt, FileRecord, L"", 0, NULL);
|
Info->EndOfFile.QuadPart = NtfsGetFileSize(DeviceExt, FileRecord, L"", 0, (PULONGLONG)&Info->AllocationSize.QuadPart);
|
||||||
Info->AllocationSize.QuadPart = ROUND_UP(Info->EndOfFile.QuadPart, DeviceExt->NtfsInfo.BytesPerCluster);
|
|
||||||
|
|
||||||
Info->FileIndex = MFTIndex;
|
Info->FileIndex = MFTIndex;
|
||||||
Info->EaSize = 0;
|
Info->EaSize = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue