Repository navigation
docs: update erofs docs - #13907
Merged
Merged
docs: update erofs docs#13907
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the EROFS snapshotter documentation to describe the new layer content cache capability and to align existing prose formatting with the document’s wrapping style.
Changes:
- Rewrapped the “Tar Index Mode” section for readability/consistency.
- Added a new “Layer Content Cache” section describing
layer_content_caches, operational constraints, and an example workflow for building a cache withctr.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Describe layer_content_caches: what it replaces (a mkfs.erofs run per layer on every node), how a hit is served, how multiple directories are searched, and how to build a cache with ctr images build-erofs-cache. Call out that the cached blob is symlinked rather than copied, so entries have to outlive the snapshots referencing them, and that fsverity and IMMUTABLE_FL can't be used alongside a cache. Signed-off-by: Maksym Pavlenko <[email protected]>
Wrap the four long paragraphs at 80 columns to match the rest of the file. No text changes. Signed-off-by: Maksym Pavlenko <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
Suppressed comments (2)
docs/snapshotters/erofs.md:387
- The snapshotter rejects relative entries in
layer_content_caches(they must be absolute paths). This is important operationally because a relative path currently fails snapshotter startup rather than being treated as a cache miss.
Directories are searched in order and the first hit wins. A directory that isn't
there counts as a miss, so an empty or not-yet-populated cache won't break pulls.
docs/snapshotters/erofs.md:379
- The cache description implies a fully cached image always avoids downloading layer blobs, but the snapshotter can only serve cached blobs for parentless Prepare calls. In sequential unpacking (the default) only the first layer is parentless, so users may still fetch/apply later layers unless they enable parallel unpacking (max_concurrent_unpacks > 1).
blobs keyed by layer `diffID`. When a layer is unpacked, the snapshotter checks the
cache first, and on a hit it just symlinks the cached blob into the snapshot and
mounts it, with no conversion. A miss is unpacked and converted as usual, so a
partially populated cache is fine. Cache hits also skip the layer download, so no
layer blobs are fetched for a fully cached image.
fuweid
approved these changes
Aug 6, 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.
Layer Content CachesectionTar Index Modesection at 80 chars to match the rest of the doc (no text changes)