From: Michal Privoznik Date: Thu, 20 May 2021 12:32:21 +0000 (+0200) Subject: virsh: Expose new win-dmp dump format X-Git-Tag: v7.4.0-rc1~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3de70da32db65a5413e1dc7cf76b3da29c554ed0;p=thirdparty%2Flibvirt.git virsh: Expose new win-dmp dump format In previous commit the virDomainCoreDumpWithFormat() API gained new format. Expose it. Signed-off-by: Michal Privoznik Reviewed-by: Peter Krempa --- diff --git a/docs/manpages/virsh.rst b/docs/manpages/virsh.rst index ad91cd6356..87668f2b9a 100644 --- a/docs/manpages/virsh.rst +++ b/docs/manpages/virsh.rst @@ -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 diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 5a5215ab4c..dc9712bce5 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -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' "