Skip to content

erofs-utils: collection for fragments and dedupe

Gao Xiang linux-erofs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8erofs-utils: fuse: support interlaced uncompressed pclusterinclude/erofs/decompress.h include/erofs/internal.h include/erofs_fs.h +3 more+37 -70 replies
2/8erofs-utils: lib: support fragments data decompressioninclude/erofs/internal.h include/erofs_fs.h lib/data.c +2 more+86 -71 reply
3/8erofs-utils: introduce z_erofs_inmem_extentlib/compress.c+48 -390 replies
4/8erofs-utils: mkfs: support interlaced uncompressed data layoutlib/compress.c+9 -40 replies
5/8erofs-utils: mkfs: support fragmentsinclude/erofs/compress.h include/erofs/config.h include/erofs/fragments.h +7 more+295 -370 replies
6/8erofs-utils: lib: add rb-tree implementationlib/Makefile.am lib/rb_tree.c lib/rb_tree.h+617 -10 replies
7/8erofs-utils: fuse: introduce partial-referenced pclustersinclude/erofs/internal.h include/erofs_fs.h lib/data.c +1 more+18 -20 replies
8/8erofs-utils: mkfs: introduce global compressed data deduplicationinclude/erofs/config.h include/erofs/dedupe.h lib/Makefile.am +4 more+399 -220 replies

Reviews trailers per patch

None of the 8 patches has a Reviewed-by or Acked-by.

PatchGao Xiang
1/8
2/8
3/8
4/8
5/8
6/8
7/8
8/8Co-developped-by

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

Read the v1 thread

Cover letter [PATCH 0/8] erofs-utils: collection for fragments and dedupe

This is a collection patchset to resolve conflicts for the following features:
https://lore.kernel.org/r/[email protected] (fragments) and
https://lore.kernel.org/r/[email protected] (dedupe)

Except that the fragment feature still has some TODOs. For example, duplicated fragment data can still exist in the packed file and needs to be optimized to avoid fragment data duplication. However such improvement is purely a userspace strategy improvement and I think Yue Hu will continue working on this.

I've tested fragments + dedupe with the following testcase:

dataset: Linux 5.10 + Linux 5.10.87 source code
pcluster size: 4k

compressed vanilla 658845696
fragment 634245120
dedupe 488689664
dedupe + fragment 425848832

Gao Xiang (2):
erofs-utils: introduce z_erofs_inmem_extent
erofs-utils: fuse: introduce partial-referenced pclusters

Yue Hu (4):
erofs-utils: fuse: support interlaced uncompressed pcluster
erofs-utils: lib: support fragments data decompression
erofs-utils: mkfs: support interlaced uncompressed data layout
erofs-utils: mkfs: support fragments

Ziyang Zhang (2):
erofs-utils: lib: add rb-tree implementation
erofs-utils: mkfs: introduce global compressed data deduplication

 include/erofs/compress.h   |  11 +-
 include/erofs/config.h     |   4 +-
 include/erofs/decompress.h |   3 +
 include/erofs/dedupe.h     |  39 +++
 include/erofs/fragments.h  |  28 ++
 include/erofs/inode.h      |   1 +
 include/erofs/internal.h   |  14 +
 include/erofs_fs.h         |  33 ++-
 lib/Makefile.am            |   5 +-
 lib/compress.c             | 296 +++++++++++++++------
 lib/data.c                 |  29 ++-
 lib/decompress.c           |  19 +-
 lib/dedupe.c               | 176 +++++++++++++
 lib/fragments.c            |  65 +++++
 lib/inode.c                |  58 ++++-
 lib/rb_tree.c              | 512 +++++++++++++++++++++++++++++++++++++
 lib/rb_tree.h              | 104 ++++++++
 lib/rolling_hash.h         |  60 +++++
 lib/super.c                |   1 +
 lib/zmap.c                 |  59 ++++-
 mkfs/main.c                |  77 +++++-
 21 files changed, 1492 insertions(+), 102 deletions(-)
 create mode 100644 include/erofs/dedupe.h
 create mode 100644 include/erofs/fragments.h
 create mode 100644 lib/dedupe.c
 create mode 100644 lib/fragments.c
 create mode 100644 lib/rb_tree.c
 create mode 100644 lib/rb_tree.h
 create mode 100644 lib/rolling_hash.h
Signature · 1 line
2.24.4