Repository navigation
capi: Check expected_fsverity_digest and fix lcfs_mount_image() #401
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
Merged
alexlarsson
merged 6 commits into
composefs:main
from
cgwalters-forge:bot/capi-mount-fixes
Sep 28, 2026
+491
−43
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
70efbf3
capi: Enable the pre-6.15 mount compat by default
cgwalters-bot 637bb78
capi: Don't mount the EROFS image twice in lcfs_mount_fd()
cgwalters-bot 1b6a877
capi: Support upperdir and workdir in lcfs_mount_fd()
cgwalters-bot 5dbc8e1
tests: Add privileged tests of lcfs_mount_image()
cgwalters-bot 8672bf3
capi: Use Option<NonNull> for the lcfs_mount_fd() options
cgwalters-bot 0e6d42f
capi: Check expected_fsverity_digest in lcfs_mount_fd()
cgwalters-bot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Not new but we should use
Option<NonNull>https://doc.rust-lang.org/stable/std/ptr/struct.NonNull.html#method.newThere 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.
Done, as a separate prep commit "capi: Use Option for the lcfs_mount_fd() options" (ee7198d):
lcfs_mount_fd()converts the pointer once withNonNull::new(options).map(|p| p.as_ref())and the rest usesif let Some(opts);validate_options()now takesOption<&LcfsMountOptions>. The later commits changed only to fit it: 23fdafd -> 3338f44, 1d177f4 -> 0cd328a, 468778e -> a692d1e (the first two, 70efbf3 and 637bb78, are unchanged). Those lost your Signed-off-by for now; it will be restored with the new sign-off tool.Generated-by: https://github.com/cgwalters/#llms