Specify -p option to compress vmcore in snappy.

Signed-off-by: HATAYAMA Daisuke <[email protected]>
---

 makedumpfile.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/makedumpfile.c b/makedumpfile.c
index d024e95..14fd9f6 100644
--- a/makedumpfile.c
+++ b/makedumpfile.c
@@ -6968,7 +6968,7 @@ main(int argc, char *argv[])
 
        info->block_order = DEFAULT_ORDER;
        message_level = DEFAULT_MSG_LEVEL;
-       while ((opt = getopt_long(argc, argv, "b:cDd:EFfg:hi:lMRrsvXx:", 
longopts,
+       while ((opt = getopt_long(argc, argv, "b:cDd:EFfg:hi:lMpRrsvXx:", 
longopts,
            NULL)) != -1) {
                switch (opt) {
                case 'b':
@@ -7026,6 +7026,9 @@ main(int argc, char *argv[])
                case 'M':
                        info->flag_dmesg = 1;
                        break;
+               case 'p':
+                       info->flag_compress = DUMP_DH_COMPRESSED_SNAPPY;
+                       break;
                case 'P':
                        info->xen_phys_start = strtoul(optarg, NULL, 0);
                        break;

--
Crash-utility mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/crash-utility

Reply via email to