Author: pschweitzer
Date: Thu Jan 8 20:29:04 2015
New Revision: 66008
URL:
http://svn.reactos.org/svn/reactos?rev=66008&view=rev
Log:
[NTFS]
Also return MFT index in case of FileDirectoryInformation query
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] Thu Jan 8 20:29:04 2015
@@ -157,6 +157,7 @@
NtfsGetDirectoryInformation(PDEVICE_EXTENSION DeviceExt,
PFILE_RECORD_HEADER FileRecord,
PNTFS_ATTR_CONTEXT DataContext,
+ ULONGLONG MFTIndex,
PFILE_DIRECTORY_INFORMATION Info,
ULONG BufferLength)
{
@@ -192,7 +193,7 @@
Info->EndOfFile.QuadPart = FileName->AllocatedSize;
Info->AllocationSize.QuadPart = ROUND_UP(FileName->AllocatedSize,
DeviceExt->NtfsInfo.BytesPerCluster);
-// Info->FileIndex=;
+ Info->FileIndex = MFTIndex;
return STATUS_SUCCESS;
}
@@ -443,6 +444,7 @@
Status = NtfsGetDirectoryInformation(DeviceExtension,
FileRecord,
DataContext,
+ MFTRecord,
(PFILE_DIRECTORY_INFORMATION)Buffer,
BufferLength);
break;