[NTFS]
authorPierre Schweitzer <pierre@reactos.org>
Fri, 26 Sep 2014 17:49:05 +0000 (17:49 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Fri, 26 Sep 2014 17:49:05 +0000 (17:49 +0000)
Also store the MFT index in the FCB

svn path=/trunk/; revision=64315

reactos/drivers/filesystems/ntfs/fcb.c
reactos/drivers/filesystems/ntfs/fsctl.c
reactos/drivers/filesystems/ntfs/ntfs.h

index ee5553a..81daa41 100644 (file)
@@ -288,6 +288,7 @@ NtfsMakeRootFCB(PNTFS_VCB Vcb)
     Fcb->RFCB.FileSize.QuadPart = PAGE_SIZE;//Vcb->CdInfo.RootSize;
     Fcb->RFCB.ValidDataLength.QuadPart = PAGE_SIZE;//Vcb->CdInfo.RootSize;
     Fcb->RFCB.AllocationSize.QuadPart = PAGE_SIZE;//Vcb->CdInfo.RootSize;
+    Fcb->MFTIndex = NTFS_FILE_ROOT;
 
     NtfsFCBInitializeCache(Vcb, Fcb);
     NtfsAddFCBToTable(Vcb, Fcb);
index c822709..8d149bf 100644 (file)
@@ -344,6 +344,7 @@ NtfsGetVolumeData(PDEVICE_OBJECT DeviceObject,
     VolumeFcb->RFCB.FileSize.QuadPart = DeviceExt->NtfsInfo.SectorCount * DeviceExt->NtfsInfo.BytesPerSector;
     VolumeFcb->RFCB.ValidDataLength = VolumeFcb->RFCB.FileSize;
     VolumeFcb->RFCB.AllocationSize = VolumeFcb->RFCB.FileSize;
+    VolumeFcb->MFTIndex = 0;
     DeviceExt->VolumeFcb = VolumeFcb;
 
     /* Get volume information */
index abd3a45..5b1b3ab 100644 (file)
@@ -138,6 +138,8 @@ typedef struct _FCB
     LONG RefCount;
     ULONG Flags;
 
+    ULONGLONG MFTIndex;
+
 //  DIR_RECORD Entry;
 
 } NTFS_FCB, *PNTFS_FCB;