[RFC PATCH 0/5] erofs-utils: add manifest input support

adigitX adityakammati.workspace at gmail.com
Sun Mar 22 02:28:27 AEDT 2026


Hi,

This RFC series adds manifest-driven image construction support to
mkfs.erofs.

The series is split into plumbing, loader interface, composefs support,
proto support, and a final mkfs follow-up so each step is easier to
review.

Current scope:

- add a manifest source mode to mkfs.erofs
- add a manifest loader interface in lib/
- implement a composefs-based manifest subset
- implement a proto manifest subset
- enable diskbuf staging for manifest-backed inputs

The current implementation is intentionally minimal.  In particular,
composefs xattrs, inline content, and digests are not implemented yet.

This series is based on:

  b67812ce4eb5 ("erofs-utils: fix thread join loop in erofs_destroy_workqueue")

Build and validation:

- built locally with make -j2
- final tree passes ./tests/manifest.sh

Comments on the series split, manifest format handling, and any preferred
follow-up direction would be appreciated.

Thanks,
Aditya

adigitX (5):
  erofs-utils: mkfs: add manifest source mode plumbing
  erofs-utils: lib: add manifest loader interface
  erofs-utils: lib: implement composefs manifest subset
  erofs-utils: lib: implement proto manifest subset
  erofs-utils: mkfs: enable diskbuf staging for manifest inputs

 include/erofs/manifest.h |   26 +
 lib/Makefile.am          |    3 +-
 lib/manifest.c           | 1061 ++++++++++++++++++++++++++++++++++++++
 mkfs/main.c              |   67 ++-
 4 files changed, 1151 insertions(+), 6 deletions(-)
 create mode 100644 include/erofs/manifest.h
 create mode 100644 lib/manifest.c

-- 
2.51.0


More information about the Linux-erofs mailing list