Skip to content

Z erofs decompression - #11

Draft
priyansh-saxena1 wants to merge 1 commit into
Dreamacro:mainfrom
priyansh-saxena1:z-erofs-decompression
Draft

Z erofs decompression#11
priyansh-saxena1 wants to merge 1 commit into
Dreamacro:mainfrom
priyansh-saxena1:z-erofs-decompression

Conversation

@priyansh-saxena1

@priyansh-saxena1 priyansh-saxena1 commented Apr 19, 2026

Copy link
Copy Markdown
Contributor

Z_EROFS Decompression Foundation

Status: RFC

Overview

This PR sets up the base for Z_EROFS (compressed data) support in erofs-rs.

What this does

  • adds a decomp module with initial VLE index parsing
  • defines VLEIndex (kernel compatible 8-byte format)
  • updates errors to show decompression is not supported yet
  • adds kernel refs for clarity (zmap.c, zdata.c)

Not done yet

  • pcluster extraction
  • decompression (lz4/lzma/etc)
  • full VLE traversal
  • fragment handling

Plan

Compressed inode

  1. VLE parsing (this PR)
  2. pcluster lookup
  3. decompression
  4. normal reads

Links

Kernel source: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/fs/erofs
Docs: https://docs.kernel.org/filesystems/erofs.html#compression

Testing

cargo check

Signed-off-by: priyansh-saxena1 <priyena.programming@gmail.com>
@priyansh-saxena1
priyansh-saxena1 marked this pull request as draft April 19, 2026 14:43
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.

1 participant