Author: pschweitzer
Date: Mon Dec 15 21:44:52 2014
New Revision: 65680
URL:
http://svn.reactos.org/svn/reactos?rev=65680&view=rev
Log:
[NTFS]
Return the MFT index in FileFullDirectoryInformation and NtfsGetBothDirectoryInformation
queries
Modified:
trunk/reactos/drivers/filesystems/ntfs/dirctl.c
Modified: trunk/reactos/drivers/filesystems/ntfs/dirctl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/d…
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/dirctl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/dirctl.c [iso-8859-1] Mon Dec 15 21:44:52 2014
@@ -198,6 +198,7 @@
NtfsGetFullDirectoryInformation(PDEVICE_EXTENSION DeviceExt,
PFILE_RECORD_HEADER FileRecord,
PNTFS_ATTR_CONTEXT DataContext,
+ ULONGLONG MFTIndex,
PFILE_FULL_DIRECTORY_INFORMATION Info,
ULONG BufferLength)
{
@@ -229,7 +230,7 @@
Info->EndOfFile.QuadPart = FileName->AllocatedSize;
Info->AllocationSize.QuadPart = ROUND_UP(FileName->AllocatedSize,
DeviceExt->NtfsInfo.BytesPerCluster);
-// Info->FileIndex=;
+ Info->FileIndex = MFTIndex;
Info->EaSize = 0;
return STATUS_SUCCESS;
@@ -240,6 +241,7 @@
NtfsGetBothDirectoryInformation(PDEVICE_EXTENSION DeviceExt,
PFILE_RECORD_HEADER FileRecord,
PNTFS_ATTR_CONTEXT DataContext,
+ ULONGLONG MFTIndex,
PFILE_BOTH_DIR_INFORMATION Info,
ULONG BufferLength)
{
@@ -285,7 +287,7 @@
Info->EndOfFile.QuadPart = FileName->AllocatedSize;
Info->AllocationSize.QuadPart = ROUND_UP(FileName->AllocatedSize,
DeviceExt->NtfsInfo.BytesPerCluster);
-// Info->FileIndex=;
+ Info->FileIndex = MFTIndex;
Info->EaSize = 0;
return STATUS_SUCCESS;
@@ -437,6 +439,7 @@
Status = NtfsGetFullDirectoryInformation(DeviceExtension,
FileRecord,
DataContext,
+ MFTRecord,
(PFILE_FULL_DIRECTORY_INFORMATION)Buffer,
BufferLength);
break;
@@ -445,6 +448,7 @@
Status = NtfsGetBothDirectoryInformation(DeviceExtension,
FileRecord,
DataContext,
+ MFTRecord,
(PFILE_BOTH_DIR_INFORMATION)Buffer,
BufferLength);
break;