Signed-off-by: Tao Liu <ltao@xxxxxxxxxx> Signed-off-by: Coiby Xu <coxu@xxxxxxxxxx> --- makedumpfile.c | 5 ++++- makedumpfile.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/makedumpfile.c b/makedumpfile.c index 7777157..100b407 100644 --- a/makedumpfile.c +++ b/makedumpfile.c @@ -11656,7 +11656,7 @@ main(int argc, char *argv[]) info->block_order = DEFAULT_ORDER; message_level = DEFAULT_MSG_LEVEL; - while ((opt = getopt_long(argc, argv, "b:cDd:eEFfg:hi:lL:pRvXx:", longopts, + while ((opt = getopt_long(argc, argv, "b:cDd:eEFfg:hi:lL:pRvXx:z", longopts, NULL)) != -1) { switch (opt) { unsigned long long val; @@ -11739,6 +11739,9 @@ main(int argc, char *argv[]) case OPT_COMPRESS_SNAPPY: info->flag_compress = DUMP_DH_COMPRESSED_SNAPPY; break; + case OPT_COMPRESS_ZSTD: + info->flag_compress = DUMP_DH_COMPRESSED_ZSTD; + break; case OPT_XEN_PHYS_START: info->xen_phys_start = strtoul(optarg, NULL, 0); break; diff --git a/makedumpfile.h b/makedumpfile.h index bd9e2f6..46d77b0 100644 --- a/makedumpfile.h +++ b/makedumpfile.h @@ -2471,6 +2471,7 @@ struct elf_prstatus { #define OPT_VERSION 'v' #define OPT_EXCLUDE_XEN_DOM 'X' #define OPT_VMLINUX 'x' +#define OPT_COMPRESS_ZSTD 'z' #define OPT_START 256 #define OPT_SPLIT OPT_START+0 #define OPT_REASSEMBLE OPT_START+1 -- 2.29.2 _______________________________________________ kexec mailing list kexec@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/kexec