Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
erofs-utils: improve the usage and version text of non-fuse commands
For each command: - Change the format of --help to be closer to the usual GNU format - Have the --version text mention that it is part of erofs-utils - Include compile-time feature flags in -V - Have --help and --version print on stdout not stderr - Exit with 0 from --help and --version - Have flag errors print a message saying to use --help instead of printing the full help text For fsck.erofs: - Consolidate the descriptions of --[no-]preserve[-<owner|perms> - Clarify the range that -d accepts For mkfs.erofs: - Print supported algorithms and their level ranges+defaults - Clarify the range that -d accepts For mkfs.erofs to have access to the algorithms' level ranges and defaults, it is necessary to modify z_erofs_list_available_compressors() to return the full `struct erofs_algorithm` instead of just the `->name`. Signed-off-by: Luke T. Shumaker <lukeshu@umorpha.io> Link: https://lore.kernel.org/r/20231102193122.140921-3-lukeshu@lukeshu.com Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
- Loading branch information
Showing
7 changed files
with
163 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.