Skip to content

docs: add on-disk layout document about compressed_format#34

Open
SToPire wants to merge 1 commit into
erofs:mainfrom
SToPire:to-be-merge-compress
Open

docs: add on-disk layout document about compressed_format#34
SToPire wants to merge 1 commit into
erofs:mainfrom
SToPire:to-be-merge-compress

Conversation

@SToPire
Copy link
Copy Markdown
Member

@SToPire SToPire commented May 16, 2026

Draft for erofs on-disk layout spec about compressed_format...

(Encoded Extents Mode is still WIP)

Copilot AI review requested due to automatic review settings May 16, 2026 12:33
Copy link
Copy Markdown

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 drafts a new on-disk layout specification document for EROFS's compressed format and links it into the existing on-disk format documentation tree. The draft covers compression-related superblock fields, per-algorithm configuration records, the compression map header, both full and compacted logical cluster index encodings, and several per-inode compression features (ztailpacking, big pcluster, interlaced pcluster, fragment modes). The Encoded Extents Mode section is intentionally left as TBD.

Changes:

  • Add new src/ondisk/compressed_format.md describing compression-related superblock fields, feature flags, per-algorithm configuration records, the compression map header, logical cluster index (full and compact), and per-inode compression features.
  • Register the new page under the index.md toctree and add a short introductory bullet describing the compressed layout.
  • Cross-reference packed inode, metabox inode, and various optional compression features within the new document.

Reviewed changes

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

File Description
src/ondisk/index.md Adds a bullet describing the compressed layout and registers compressed_format in the toctree.
src/ondisk/compressed_format.md New 428-line spec covering compression superblock fields, feature flags, per-algorithm config records, map header, logical cluster index (full + compact), and per-inode compression features.

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

Comment thread src/ondisk/compressed_format.md
Comment thread src/ondisk/compressed_format.md
Comment thread src/ondisk/compressed_format.md Outdated
Comment thread src/ondisk/compressed_format.md
Comment thread src/ondisk/index.md Outdated
Comment thread src/ondisk/compressed_format.md Outdated
Comment thread src/ondisk/compressed_format.md
Comment thread src/ondisk/compressed_format.md
Comment thread src/ondisk/compressed_format.md
Assisted-by: Codex:GPT-5.5
Signed-off-by: Yifan Zhao <yifan.yfzhao@foxmail.com>
Copy link
Copy Markdown

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

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

Comment thread src/ondisk/compressed_format.md
Comment thread src/ondisk/compressed_format.md
Comment thread src/ondisk/compressed_format.md
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