mirror of
https://github.com/reactos/reactos.git
synced 2026-05-28 03:44:02 +08:00
CORE-14603 CORE-9023
The RamDisk path specified with `/RDPATH=` can be a path to a block
device, like a disk partition, or the current boot disk (a ReactOS
specific feature added in commit 9b70d4380c), instead of being only
a file (as with Windows' NTLDR).
In this case, the `StartingAddress` and `EndingAddress` returned by
`ArcGetFileInformation()` are, per the specs, the start and end
positions of the partition as byte offsets from the start of the disk.
Therefore, the size of the partition is `== EndingAddress - StartingAddress`.
+ Add diagnostic traces in `RamDiskLoadVirtualFile()` and `RamDiskInitialize()`.
Co-authored-by: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>