Add decoding of VHD cookie, validation, and parsing #948
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
I am attempting to install Openstep 4.2 but the first major issue is that the IDE driver suffers an overflow with larger SPT values. I would like to manually set the hard drive specifications to allow for the operating system to access the hard drive.
Implementation
The VHD specification allows for hard drive metadata to be specified on a per file basis. I have added support files that provides the initial VHD footer parsing to allow for the metadata to be extracted for fixed size VHDs. I use this data in the hard drive loading path for pcxt and ao486 to allow for the file to define the CHS values.
I have created a support directory for this functionality in the case that VHD support is extended in the future to support DYNAMIC or DIFFERENTIAL types.
In the case that a VHD footer cannot be properly parsed, the functionality falls back to the current state of treating the file like a standard raw image.