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

More prep patches for miniso work #635

Merged
merged 6 commits into from
Sep 28, 2021
Merged

More prep patches for miniso work #635

merged 6 commits into from
Sep 28, 2021

Conversation

jlebon
Copy link
Member

@jlebon jlebon commented Sep 24, 2021

Split out of #559. See individual commit messages.

I want to make it easy to get the address both in sector or offset form
without having to multiply/divide in callers. Let's just make a proper
type for this.
@jlebon
Copy link
Member Author

jlebon commented Sep 24, 2021

OK, clearly I need to updated my local clippy.

Copy link
Contributor

@bgilbert bgilbert left a comment

Choose a reason for hiding this comment

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

Looks great; just some optional nits. I like the Address solution.

src/io.rs Outdated Show resolved Hide resolved
src/io.rs Show resolved Hide resolved
This is symmetrical to the existing `LimitReader` we already have. This
will be used by the miniso code for overwriting files in the live ISO.
This is symmetrical to the existing `IsoFs::read_file` returning a
`Reader`.
This will be re-used by a future patch.

While we're here, clean things up so we don't call `bindcoder()` more
times than necessary.
This will be re-used by a future patch.
@jlebon
Copy link
Member Author

jlebon commented Sep 27, 2021

Updated!

@jlebon jlebon enabled auto-merge September 27, 2021 20:07
@jlebon jlebon merged commit 57b29a3 into coreos:main Sep 28, 2021
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