Skip to content

docs: update erofs docs - #13907

Merged
fuweid merged 2 commits into
containerd:mainfrom
mxpv:erofs-docs
Aug 6, 2026
Merged

fuweid merged 2 commits into
containerd:mainfrom
mxpv:erofs-docs

Conversation

@mxpv

@mxpv mxpv commented Aug 6, 2026 •

Copy link
Copy Markdown
Member
  • Adds new Layer Content Cache section
  • Rewrap Tar Index Mode section at 80 chars to match the rest of the doc (no text changes)

Copilot AI lite review requested due to automatic review settings August 6, 2026 00:47
@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review Aug 6, 2026
@mxpv mxpv mentioned this pull request Aug 6, 2026
7 tasks done
@mxpv
mxpv requested a review from hsiangkao August 6, 2026 00:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 with ctr.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/snapshotters/erofs.md Resolved
Comment thread docs/snapshotters/erofs.md Resolved

@hsiangkao hsiangkao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise LGTM,

Comment thread docs/snapshotters/erofs.md Resolved
mxpv added 2 commits August 5, 2026 20:25
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]>
Copilot AI review requested due to automatic review settings August 6, 2026 03:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Aug 6, 2026
@fuweid
fuweid added this pull request to the merge queue Aug 6, 2026
Merged via the queue into containerd:main with commit 54a25ed Aug 6, 2026
51 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants