[PATCH 0/3] erofs-utils: Address doc and flag-parsing snags

Luke T. Shumaker lukeshu at lukeshu.com
Fri Nov 3 06:31:19 AEDT 2023

From: "Luke T. Shumaker" <lukeshu at umorpha.io>

Hi all,

This patchset addresses snags that I hit while adopting erofs for our
system images.

 - The first patch is really just setting a baseline for the next two.

 - The second patch is improving the --help text to address the snag
   that I had to read the source code to understand how to use the
   mkfs.erofs `-z` flag, and also setting the stage for the third
   patch.  In doing this I broadly improved the --help text overall,
   not just for mkfs.erofs.

 - The third patch is adding no-op `-a`, `-A`, and `-y` flags to
   fsck.erofs, to address the snag that I was seeing errors in the
   boot scroll.

I didn't touch erofsfuse in any of these, not because it isn't worthy
of the changes from the first two patches, just that I decided it
would have been too much work at the moment.

Luke T. Shumaker (3):
  erofs-utils: have each non-fuse command take -h, --help, -V, and
  erofs-utils: improve the usage and version text of non-fuse commands
  erofs-utils: fsck: Add -a, -A, and -y flags

 dump/main.c              |  47 +++++++------
 fsck/main.c              |  81 ++++++++++++++--------
 include/erofs/compress.h |   2 +-
 lib/compressor.c         |  13 +---
 lib/compressor.h         |   9 ++-
 man/dump.erofs.1         |   5 +-
 man/fsck.erofs.1         |   8 ++-
 man/mkfs.erofs.1         |  15 ++--
 mkfs/main.c              | 144 +++++++++++++++++++++++++--------------
 9 files changed, 202 insertions(+), 122 deletions(-)

Happy hacking,
~ Luke T. Shumaker

More information about the Linux-erofs mailing list