Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement HardDriveMediaDevicePath (along with MBR and GPT tests). #497

Conversation

ColinFinck
Copy link
Contributor

This PR implements the HardDriveMediaDevicePath specialization of DevicePathNode.
I basically looked at the existing FilePathMediaDevicePath and added the new structure with a similar API.

This has been tested on the TianoCore UEFI of QEMU.
I've also added unit tests against the raw bytes of HardDriveMediaDevicePath for an MBR and a GPT partition.

@nicholasbishop nicholasbishop force-pushed the feature/hard-drive-media-device-path branch from bb20062 to 5904c16 Compare September 1, 2022 15:10
Copy link
Contributor

@nicholasbishop nicholasbishop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the PR :)

@nicholasbishop nicholasbishop merged commit 1c62af7 into rust-osdev:main Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants