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

V1.0 review fixes #22

Merged
merged 25 commits into from Apr 24, 2023
Merged

V1.0 review fixes #22

merged 25 commits into from Apr 24, 2023

Conversation

jonasblixt
Copy link
Owner

No description provided.

This makes it more comfortable to use the API and reduces a lot of
casting.
Since this is a "core" API it belongs togheter with other similar API:s
The final call might block while finishing up an async update.
To reduce casting everywhere
This also clarifies the get_last/first_block API's. Namely that they
return the lba's of the underlying storage device.
Otherwise it provides a pretty limited range for 32-bit platforms.
Partitions sizes are exposed through the BIO layer anyway.
This should only be used in memory allocation situations
SZ_MB -> SZ_MiB
SZ_kB -> SZ_KiB
SZ_GB -> SZ_GiB
Since punchboot these days actually uses the extcsd to report the
correct size of boot partitions we need a way to be backwards compatible
with existing systems.

This option allows the user to override the boot partition size to
something less than the physical size.

Most users should leave this disabled.
@codecov
Copy link

codecov bot commented Apr 24, 2023

Codecov Report

Merging #22 (46a3dcd) into master (06c82ac) will decrease coverage by 0.33%.
The diff coverage is 90.09%.

@@            Coverage Diff             @@
##           master      #22      +/-   ##
==========================================
- Coverage   68.39%   68.06%   -0.33%     
==========================================
  Files          54       54              
  Lines        2781     2784       +3     
==========================================
- Hits         1902     1895       -7     
- Misses        879      889      +10     
Impacted Files Coverage Δ
src/rot.c 100.00% <ø> (ø)
src/drivers/crypto/mbedtls/mbedtls_pb.c 94.18% <40.00%> (-1.17%) ⬇️
src/boot/image_helpers.c 83.33% <62.50%> (ø)
src/crypto.c 67.41% <66.66%> (ø)
src/bio.c 81.67% <90.90%> (ø)
src/cm/cm_main.c 78.68% <95.91%> (-0.41%) ⬇️
src/boot/ab_state.c 67.92% <100.00%> (ø)
src/boot/boot.c 75.55% <100.00%> (ø)
src/drivers/fuse/test_fuse_bio.c 100.00% <100.00%> (ø)
src/drivers/partition/gpt.c 89.70% <100.00%> (+0.05%) ⬆️
... and 3 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@jonasblixt jonasblixt merged commit d5af7a5 into master Apr 24, 2023
4 of 5 checks passed
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.

None yet

1 participant