Skip to content

erofs-utils: mkfs: introduce rebuild mode

Jingbo Xu linux-erofs 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest8 patches 2 repliesIn review
  2. v611 patches 3 repliesSuperseded
  3. v58 patches 0 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v410 patches3 repliesSuperseded
v311 patches2 repliesSuperseded
v212 patches0 repliesSuperseded
v113 patches9 repliesSuperseded

Changes in v8 from the cover letter

- patch 7: fix the missing call for erofs_mkfs_dump_blobs() in rebuild mode by also calling erofs_mkfs_dump_blobs() when sbi->extra_devices is not zero; otherwise the content of the on-disk device slot is all 0
- patch 8: strip overlay.opaque xattr when --ovlfs-strip=1; update the commit message accordingly

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8erofs-utils: lib: add list_splice_tail() helperinclude/erofs/list.h+20 -00 replies
2/8erofs-utils: lib: make erofs_get_unhashed_chunk() globalinclude/erofs/blobchunk.h lib/blobchunk.c+3 -10 replies
3/8erofs-utils: lib: add erofs_read_xattrs_from_disk() helperinclude/erofs/internal.h include/erofs/xattr.h lib/xattr.c+71 -00 replies
4/8erofs-utils: lib: add erofs_insert_ihash() helperinclude/erofs/inode.h lib/inode.c+10 -30 replies
5/8erofs-utils: lib: add erofs_rebuild_get_dentry() helperinclude/erofs/rebuild.h lib/Makefile.am lib/rebuild.c +1 more+140 -1070 replies
6/8erofs-utils: lib: add erofs_rebuild_load_tree() helperinclude/erofs/inode.h include/erofs/internal.h include/erofs/rebuild.h +3 more+298 -60 replies
7/8erofs-utils: mkfs: introduce rebuild modemkfs/main.c+168 -511 reply
8/8erofs-utils: mkfs: add `--ovlfs-strip` optioninclude/erofs/config.h include/erofs/xattr.h lib/inode.c +2 more+42 -31 reply

Reviews trailers per patch

2 of 8 patches have a Reviewed-by or Acked-by.

PatchGao Xiang
1/8R-b
2/8
3/8
4/8R-b
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v8 thread

Cover letter [PATCH v8 0/8] erofs-utils: mkfs: introduce rebuild mode

v8:
- patch 7: fix the missing call for erofs_mkfs_dump_blobs() in rebuild mode by also calling erofs_mkfs_dump_blobs() when sbi->extra_devices is not zero; otherwise the content of the on-disk device slot is all 0
- patch 8: strip overlay.opaque xattr when --ovlfs-strip=1; update the commit message accordingly

v1: https://lore.kernel.org/all/[email protected]/
v2: https://lore.kernel.org/all/[email protected]/
v3: https://lore.kernel.org/all/[email protected]/
v4: https://lore.kernel.org/all/[email protected]/
v5: https://lore.kernel.org/all/[email protected]/
v6: https://lore.kernel.org/all/[email protected]/
v7: https://lore.kernel.org/all/[email protected]/

-------------------------

Introduce a new rebuild mode merging multiple erofs images generated from either tarerfs index mode (--tar=i):

	mkfs.erofs --tar=i --aufs layer0.erofs layer0.tar
	...
	mkfs.erofs --tar=i --aufs layerN.erofs layerN.tar

	mkfs.erofs merge.erofs layer0.erofs ... layerN.erofs

or tarerofs non-index mode (--tar=f):

	mkfs.erofs --tar=f -Enoinline_data --aufs layer0.erofs layer0.tar
	...
	mkfs.erofs --tar=f -Enoinline_data --aufs layerN.erofs layerN.tar

	mkfs.erofs merge.erofs layer0.erofs ... layerN.erofs

Jingbo Xu (8):
erofs-utils: lib: add list_splice_tail() helper
erofs-utils: lib: make erofs_get_unhashed_chunk() global
erofs-utils: lib: add erofs_read_xattrs_from_disk() helper
erofs-utils: lib: add erofs_insert_ihash() helper
erofs-utils: lib: add erofs_rebuild_get_dentry() helper
erofs-utils: lib: add erofs_rebuild_load_tree() helper
erofs-utils: mkfs: introduce rebuild mode
erofs-utils: mkfs: add --ovlfs-strip option

 include/erofs/blobchunk.h |   2 +
 include/erofs/config.h    |   1 +
 include/erofs/inode.h     |   5 +-
 include/erofs/internal.h  |   7 +-
 include/erofs/list.h      |  20 ++
 include/erofs/rebuild.h   |  21 ++
 include/erofs/xattr.h     |   2 +
 lib/Makefile.am           |   3 +-
 lib/blobchunk.c           |   2 +-
 lib/inode.c               |  31 ++-
 lib/rebuild.c             | 404 ++++++++++++++++++++++++++++++++++++++
 lib/tar.c                 | 109 +---------
 lib/xattr.c               |  87 ++++++++
 mkfs/main.c               | 227 ++++++++++++++++-----
 14 files changed, 751 insertions(+), 170 deletions(-)
 create mode 100644 include/erofs/rebuild.h
 create mode 100644 lib/rebuild.c
Signature · 1 line
2.19.1.6.gb485710b