aboutsummaryrefslogtreecommitdiff
path: root/mkfs/mkfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'mkfs/mkfs.c')
-rw-r--r--mkfs/mkfs.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/mkfs/mkfs.c b/mkfs/mkfs.c
index dac0a34..c958d73 100644
--- a/mkfs/mkfs.c
+++ b/mkfs/mkfs.c
@@ -47,6 +47,12 @@ int main(int argc, char **argv)
process_command_line(&info.opt, argc, argv);
+ if (info.opt.comp_extra != NULL &&
+ strcmp(info.opt.comp_extra, "help") == 0) {
+ compressor_print_help(info.opt.compressor);
+ return EXIT_SUCCESS;
+ }
+
if (sqfs_super_init(&info.super, info.opt.blksz, info.opt.def_mtime,
info.opt.compressor)) {
return EXIT_FAILURE;
@@ -85,7 +91,8 @@ int main(int argc, char **argv)
fstree_sort(&info.fs);
info.cmp = compressor_create(info.super.compression_id, true,
- info.super.block_size);
+ info.super.block_size,
+ info.opt.comp_extra);
if (info.cmp == NULL) {
fputs("Error creating compressor\n", stderr);
goto out_outfd;