[NTFS]
authorPierre Schweitzer <pierre@reactos.org>
Thu, 8 Jan 2015 20:29:04 +0000 (20:29 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Thu, 8 Jan 2015 20:29:04 +0000 (20:29 +0000)
Also return MFT index in case of FileDirectoryInformation query

svn path=/trunk/; revision=66008

reactos/drivers/filesystems/ntfs/dirctl.c

index 3ff792b..b16348a 100644 (file)
@@ -157,6 +157,7 @@ static NTSTATUS
 NtfsGetDirectoryInformation(PDEVICE_EXTENSION DeviceExt,
                             PFILE_RECORD_HEADER FileRecord,
                             PNTFS_ATTR_CONTEXT DataContext,
+                            ULONGLONG MFTIndex,
                             PFILE_DIRECTORY_INFORMATION Info,
                             ULONG BufferLength)
 {
@@ -192,7 +193,7 @@ NtfsGetDirectoryInformation(PDEVICE_EXTENSION DeviceExt,
     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 @@ NtfsQueryDirectory(PNTFS_IRP_CONTEXT IrpContext)
                     Status = NtfsGetDirectoryInformation(DeviceExtension,
                                                          FileRecord,
                                                          DataContext,
+                                                         MFTRecord,
                                                          (PFILE_DIRECTORY_INFORMATION)Buffer,
                                                          BufferLength);
                     break;