Skip to content

docs: enrich on-disk format documentation#13

Closed
SToPire wants to merge 1 commit intoerofs:mainfrom
SToPire:main
Closed

docs: enrich on-disk format documentation#13
SToPire wants to merge 1 commit intoerofs:mainfrom
SToPire:main

Conversation

@SToPire
Copy link
Member

@SToPire SToPire commented Feb 27, 2026

Enrich the monolithic core_ondisk.md into modular files under src/ondisk/:

  • core_ondisk.md: core format (superblock, inodes, directories)
  • compressed_format.md: compression layout and features
  • chunked_format.md: chunk-based file format and multi-device support
  • xattrs.md: extended attributes handling

Remaining TBD:

  • may need more figures describing on-disk layout
  • Encoded Extents Mode not documented for now

Copilot AI review requested due to automatic review settings March 2, 2026 01:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR restructures the EROFS on-disk format documentation by splitting the prior monolithic document into modular pages under src/ondisk/, and wires the new on-disk docs section into the existing Sphinx toctrees. It also adds a GitHub Actions workflow to build an HTML preview for PRs.

Changes:

  • Introduce a new src/ondisk/ documentation section with separate pages for core format, compression, chunked format, and xattrs.
  • Update the design docs to point to the new on-disk docs index.
  • Add a PR workflow to build and upload HTML documentation artifacts and comment instructions on the PR.

Reviewed changes

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/ondisk/index.md Adds a new on-disk format landing page and toctree for the modular docs.
src/ondisk/core_ondisk.md Adds the new “core” on-disk format doc (superblock/inodes/directories) content.
src/ondisk/compressed_format.md Adds a dedicated compressed format layout doc.
src/ondisk/chunked_format.md Adds a dedicated chunk-based file format + device table doc.
src/ondisk/xattrs.md Adds a dedicated xattrs doc (inline/shared/prefixes/filter/image-share).
src/design.md Updates the design page toctree entry to point at ondisk/index.
src/core_ondisk.md Removes the old monolithic on-disk doc at the prior location.
.github/workflows/pr-preview.yml Adds a PR documentation preview workflow that builds HTML and posts artifact instructions.

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

Comment on lines +40 to +49
- name: Find existing comment
uses: peter-evans/find-comment@v3
id: find-comment
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: 'Documentation Preview'

- name: Create or update comment
uses: peter-evans/create-or-update-comment@v4
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

Third-party actions peter-evans/find-comment@v3 and peter-evans/create-or-update-comment@v4 are referenced by moving tags. Consider pinning them to full commit SHAs to reduce supply-chain risk.

Copilot uses AI. Check for mistakes.
Comment on lines +19 to +24
- name: Checkout
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

This workflow uses several GitHub Actions by moving tags (e.g. actions/checkout@v4, actions/setup-python@v5). For supply-chain hardening, consider pinning actions (especially third-party ones) to full commit SHAs and documenting the update process.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants