mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +00:00
[NTFS]
Also store the MFT index in the FCB svn path=/trunk/; revision=64315
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -138,6 +138,8 @@ typedef struct _FCB
|
||||
LONG RefCount;
|
||||
ULONG Flags;
|
||||
|
||||
ULONGLONG MFTIndex;
|
||||
|
||||
// DIR_RECORD Entry;
|
||||
|
||||
} NTFS_FCB, *PNTFS_FCB;
|
||||
|
||||
Reference in New Issue
Block a user