Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9A659C4167B for ; Thu, 2 Nov 2023 19:41:51 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4SLvQQ22Stz3d8F for ; Fri, 3 Nov 2023 06:41:50 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lukeshu.com (client-ip=104.207.138.63; helo=mav.lukeshu.com; envelope-from=lukeshu@lukeshu.com; receiver=lists.ozlabs.org) Received: from mav.lukeshu.com (mav.lukeshu.com [104.207.138.63]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4SLvQF3pWHz3cVq for ; Fri, 3 Nov 2023 06:41:41 +1100 (AEDT) Received: from lukeshu-thinkpad-e15 (unknown [IPv6:2601:281:8200:4f:aee0:10ff:fe55:8023]) by mav.lukeshu.com (Postfix) with ESMTPSA id 0D09B80623; Thu, 2 Nov 2023 15:31:41 -0400 (EDT) From: "Luke T. Shumaker" To: linux-erofs@lists.ozlabs.org Subject: [PATCH 0/3] erofs-utils: Address doc and flag-parsing snags Date: Thu, 2 Nov 2023 13:31:19 -0600 Message-ID: <20231102193122.140921-1-lukeshu@lukeshu.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: linux-erofs@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Linux EROFS file system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Luke T. Shumaker" Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" From: "Luke T. Shumaker" 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 --version 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