mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 12:14:32 +00:00
[NTFS] - Add GetAllocationOffsetFromVCN() function, which was mistakenly left out of the last commit.
svn path=/branches/GSoC_2016/NTFS/; revision=75425
This commit is contained in:
parent
5579428b4f
commit
b1eab36f6b
1 changed files with 12 additions and 0 deletions
|
@ -511,6 +511,18 @@ DumpBTree(PB_TREE Tree)
|
|||
DumpBTreeNode(Tree->RootNode, 0, 0);
|
||||
}
|
||||
|
||||
// Calculates start of Index Buffer relative to the index allocation, given the node's VCN
|
||||
ULONGLONG
|
||||
GetAllocationOffsetFromVCN(PDEVICE_EXTENSION DeviceExt,
|
||||
ULONG IndexBufferSize,
|
||||
ULONGLONG Vcn)
|
||||
{
|
||||
if (IndexBufferSize < DeviceExt->NtfsInfo.BytesPerCluster)
|
||||
return Vcn * DeviceExt->NtfsInfo.BytesPerSector;
|
||||
|
||||
return Vcn * DeviceExt->NtfsInfo.BytesPerCluster;
|
||||
}
|
||||
|
||||
/**
|
||||
* @name NtfsInsertKey
|
||||
* @implemented
|
||||
|
|
Loading…
Reference in a new issue