-
Notifications
You must be signed in to change notification settings - Fork 168
various: adjust to composefs-rs changes #1791
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
Conversation
|
Needs DCO, also looks like some of the hashes changed |
2f74390 to
561dd37
Compare
00a7bc5 to
e512306
Compare
|
I've rebased and tweaked this a bit, so it should probably be reviewed by someone other than me now. |
e512306 to
fae8808
Compare
fae8808 to
3578b8e
Compare
allisonkarlitskaya
left a comment
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.
All looks good to me but this is technically my PR so I can't self-review.
I guess we'll do a composefs-rs release after this?
| let size = header.entry_size()?; | ||
|
|
||
| match layer_stream.read_exact(size as usize, ((size + 511) & !511) as usize)? { | ||
| match layer_stream.read_exact(size as usize, ((size as usize) + 511) & !511)? { |
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.
. o O ( Reminds me that I wanted to get rid of the magic handling of padding in the writer side . . )
3578b8e to
563435d
Compare
The `cp -a lbi/usr/. /usr` command was preserving local directory permissions which in one case for me have a restrictive mode 0750 which breaks booting. Switch to `install -D -m 0644` which explicitly sets file modes and creates parent directories with correct 755 permissions, while also simplifying the directory structure. Assisted-by: OpenCode (Opus 4.5) Signed-off-by: Colin Walters <[email protected]>
Update composefs-rs from rev b636e0e9 to e9008489, adapting to API changes: - merge_splitstream now takes 4 arguments instead of 3 - import_layer takes digest as string directly - pull/seal return (digest, verity) as (String, ObjectID) - SplitStreamWriter::new and write_stream have new signatures - initialize_composefs_repository returns String instead of Sha256Digest Co-authored-by: Allison Karlitskaya <[email protected]> Assisted-by: OpenCode (Claude claude-sonnet-4-20250514) Signed-off-by: Colin Walters <[email protected]>
563435d to
29da317
Compare
jeckersb
left a comment
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.
LGTM
This is mostly about the new splitstream API, but it also adopts the new library API exposed by the
cfsctlcrate, removing our private copy.