]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: Expose new win-dmp dump format
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 20 May 2021 12:32:21 +0000 (14:32 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 20 May 2021 14:24:06 +0000 (16:24 +0200)
In previous commit the virDomainCoreDumpWithFormat() API gained
new format. Expose it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
docs/manpages/virsh.rst
tools/virsh-domain.c

index ad91cd6356fa6ab24b09595abf66b5b7a4479be7..87668f2b9a47b5cf2ca7cfd9ff8f9ace9e65e42e 100644 (file)
@@ -2554,9 +2554,10 @@ If *--memory-only* is specified, the file is elf file, and will only
 include domain's memory and cpu common register value. It is very
 useful if the domain uses host devices directly.
 *--format* *string* is used to specify the format of 'memory-only'
-dump, and *string* can be one of them: elf, kdump-zlib(kdump-compressed
+dump, and *string* can be one of: elf, kdump-zlib(kdump-compressed
 format with zlib-compressed), kdump-lzo(kdump-compressed format with
-lzo-compressed), kdump-snappy(kdump-compressed format with snappy-compressed).
+lzo-compressed), kdump-snappy(kdump-compressed format with snappy-compressed),
+win-dmp(Windows full crashdump format).
 
 The progress may be monitored using ``domjobinfo`` virsh command and canceled
 with ``domjobabort`` command (sent by another virsh instance). Another option
index 5a5215ab4ce6eeaa73de6cd8bc26164432837ca2..dc9712bce579b265c9dd31ddeb205747b575640d 100644 (file)
@@ -5463,6 +5463,8 @@ doDump(void *opaque)
                 dumpformat = VIR_DOMAIN_CORE_DUMP_FORMAT_KDUMP_SNAPPY;
             } else if (STREQ(format, "elf")) {
                 dumpformat = VIR_DOMAIN_CORE_DUMP_FORMAT_RAW;
+            } else if (STREQ(format, "win-dmp")) {
+                dumpformat = VIR_DOMAIN_CORE_DUMP_FORMAT_WIN_DMP;
             } else {
                 vshError(ctl, _("format '%s' is not supported, expecting "
                                 "'kdump-zlib', 'kdump-lzo', 'kdump-snappy' "