mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 23:12:04 +00:00
[NTFS]
Also store the MFT index in the FCB svn path=/trunk/; revision=64315
This commit is contained in:
parent
32afa0efb3
commit
1dfcfeb0f7
3 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue