Skip to content
This repository was archived by the owner on Oct 3, 2026. It is now read-only.

docs: fix stale hot-commit claim and mount-type examples - #49

Merged
aledbf merged 2 commits into
mainfrom
aledbf/docs-hot-commit-fixes
Jun 17, 2026
Merged

aledbf merged 2 commits into
mainfrom
aledbf/docs-hot-commit-fixes

Conversation

@aledbf

@aledbf aledbf commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Documentation correctness fixes. No code changes.

CLAUDE.md — false "hot commit doesn't exist" claim

The Commit Quiesce Contract said:

Hot commit (fsfreeze/sync cooperation) requires a qemubox-side protocol that does not exist yet; until then it fails loudly by design.

That is factually wrong now — hot commit is implemented, and internal/snapshotter/doc.go already describes it correctly. (This matters extra because CLAUDE.md is read every session.) Rewrote the section: cold commit requires stopped; hot commit is supported via the containerd.io/snapshot/erofs.quiesced label set by a runtime that paused the VM and FIFREEZE'd its filesystems — the snapshotter then mounts rwlayer.img ro,norecovery without the OFD lock gate.

README — wrong mount type for multi-device EROFS

Two examples showed Type: "erofs" for an fsmeta mount that has device= options. Per the documented rule (and the code), fsmeta + device= is multi-device → format/erofs (the VM-only signal). Fixed the VMDK view example and the active-writable example.

Verified: internal/snapshotter/doc.go was already correct (an earlier audit pass wrongly flagged it) — left untouched.

🤖 Generated with Claude Code

aledbf and others added 2 commits June 16, 2026 23:38
- CLAUDE.md "Commit Quiesce Contract": removed the false claim that hot
  commit "requires a qemubox-side protocol that does not exist yet; until
  then it fails loudly by design". Hot commit IS implemented: a paused +
  FIFREEZE'd guest commits via the containerd.io/snapshot/erofs.quiesced
  label, which mounts rwlayer.img ro,norecovery without the OFD lock gate.
  Now matches internal/snapshotter/doc.go.
- README: fsmeta mounts with device= options are multi-device EROFS, so the
  examples must use Type "format/erofs", not "erofs" (the documented VM-only
  signal). Fixed the VMDK view and the active-writable examples.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Jun 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@aledbf
aledbf merged commit 9fe2826 into main Jun 17, 2026
6 checks passed
@aledbf
aledbf deleted the aledbf/docs-hot-commit-fixes branch June 17, 2026 02:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant