Repository navigation
ctr: register EROFS fsview - #13891
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Registers the EROFS fsview handler in the ctr client so client-side OCI user/group resolution (e.g., ctr run --user, ctr tasks exec --user) can inspect EROFS snapshots directly via fsview instead of falling back to temporary host mounts.
Changes:
- Add a blank import in
ctrto register the EROFSfsviewhandler at startup.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ctr resolves named users and groups for run and task exec in the client process. Since EROFS fsview support moved behind registration, the ctr application does not link the handler and falls back to a temporary host mount. Register the handler with the ctr application so EROFS snapshots can be inspected directly. Non-EROFS mounts continue through the existing handlers unchanged. Signed-off-by: Chris Ayoub <[email protected]>
cayoub-oai
force-pushed
the
ctr-erofs-fsview
branch
from
August 1, 2026 22:01
35458fd to
0d37ad2
Compare
hsiangkao
approved these changes
Aug 2, 2026
djdongjin
approved these changes
Aug 2, 2026
fuweid
approved these changes
Aug 2, 2026
This was referenced Sep 15, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
ctrresolves named users and groups forrun --userandtasks exec --userin the client process. Althoughpkg/ocican inspectEROFS snapshots directly through fsview, the
ctrapplication does notcurrently register the EROFS handler and falls back to a temporary host
mount.
Register the EROFS fsview handler with the
ctrapplication. For non-EROFSmounts, fsview skips this handler and continues through the existing built-in
handlers and mount fallback paths.
Testing
go test ./cmd/ctr/app ./cmd/gen-manpages ./internal/fsview. Thiscompiles the affected
ctrapplication and manpage generator and runs theexisting fsview test suite.
io.containerd.kata.v2.ctr tasks exec --user nobody ... idwith baseline and patchedctrbinaries. Both resolved
nobodyto UID and GID65534.ctrusingstrace -f -e mount,umount2. The baseline binary mountedand unmounted a temporary
/tmp/containerd-mount*path, while the patchedbinary issued no
mountorumount2calls.execution.