-
-
Notifications
You must be signed in to change notification settings - Fork 185
uefi: add basic integration test for BlockIo and BlockIo2 protocols #1842
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
base: main
Are you sure you want to change the base?
Conversation
| media_id: u32, | ||
| lba: Lba, | ||
| token: Option<NonNull<BlockIO2Token>>, | ||
| len: usize, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping @Virv12 FYI. Unfortunately, I missed this in the review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like this change, using a reference introduces a lifetime, implying we are going to use the buffer only until the lifetime is alive, which is wrong.
There has been a similar discussion on DiskIO2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for pointing that out to me, I wasn't aware of this anymore!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching that, I had forgotten about that too :)
|
@Virv12 you implemented the blocks i/o 2 protocol in #1841 - I tried to write a very basic integration test for it. The hardest part was to understand how the async interface of the |
10a0ec8 to
250d209
Compare
- improve the ergonomics of the Blocks I/O 2 protocol - figure out how to use it at all and put that into a very basic test
add basic integration test for BlockIo and BlockIo2 protocols
Steps to Undraft
Checklist