All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 0/4] erofs-utils: Add --meta_fix and --meta_only format options
@ 2025-04-22 12:36 Hongbo Li
  2025-04-22 12:36 ` [PATCH RFC 1/4] erofs-utils: lib: introduce --meta_fix format option Hongbo Li
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Hongbo Li @ 2025-04-22 12:36 UTC (permalink / raw)
  To: xiang, chao, huyue2, jefflexu; +Cc: linux-erofs, linux-kernel, lihongbo22

In this patchset, we have added two formatting options --meta_fix and
--meta_only to extend the ability of EROFS. In the case of using OBS,
we can convert the directory tree structure from OBS into the erofs
image and implement on-demand loading logic based on this. Since OBS
objects are often large, we need to separate the metadata area from
the data area, which is the reason we introduce the --meta_fix option.
To accelerate the formatting process, we can skip the formatting of
the raw data by adding --meta_only option.

A simple usage example is as follows:
  1. Build one xattr with OBS key in s3fs.
  2. mkfs.erofs --meta_fix --meta_only data.img /mnt/s3fs to format
  3. Implement the loading logic in kernel or userspace.

Based on the above logic, we can easily expose the directory tree
from OBS to users in the form of the EROFS file system and implement
on-demand data loading for large OBS objects.

Hongbo Li (4):
  erofs-utils: lib: introduce --meta_fix format option
  erofs-utils: lib: Implement the main logic for --meta_fix option
  erofs-utils: lib: add --meta_only format option
  erofs-utils: lib: remove the compile warning

 include/erofs/blobraw.h |  29 +++++++++
 include/erofs/config.h  |   2 +
 lib/Makefile.am         |   3 +-
 lib/blobraw.c           | 129 ++++++++++++++++++++++++++++++++++++++++
 lib/decompress.c        |   3 +
 lib/inode.c             |   6 ++
 mkfs/main.c             |  49 +++++++++++++++
 7 files changed, 220 insertions(+), 1 deletion(-)
 create mode 100755 include/erofs/blobraw.h
 create mode 100755 lib/blobraw.c

-- 
2.22.0



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-04-24  0:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-22 12:36 [PATCH RFC 0/4] erofs-utils: Add --meta_fix and --meta_only format options Hongbo Li
2025-04-22 12:36 ` [PATCH RFC 1/4] erofs-utils: lib: introduce --meta_fix format option Hongbo Li
2025-04-22 12:36 ` [PATCH RFC 2/4] erofs-utils: lib: Implement the main logic for --meta_fix option Hongbo Li
2025-04-22 12:36 ` [PATCH RFC 3/4] erofs-utils: lib: add --meta_only format option Hongbo Li
2025-04-22 12:36 ` [PATCH RFC 4/4] erofs-utils: lib: remove the compile warning Hongbo Li
2025-04-22 13:50 ` [PATCH RFC 0/4] erofs-utils: Add --meta_fix and --meta_only format options Gao Xiang
2025-04-22 14:37   ` Hongbo Li
2025-04-24  0:39     ` Gao Xiang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.