From: Peter Krempa Date: Thu, 8 Dec 2016 10:25:09 +0000 (+0100) Subject: qemu: Don't try to find compression program for "raw" memory images X-Git-Tag: v3.0.0-rc1~364 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4ed5b4212bac7907daf296b313583fb14569c56;p=thirdparty%2Flibvirt.git qemu: Don't try to find compression program for "raw" memory images There's nothing to compress if the requested snapshot memory format is set to 'raw' explicitly. After commit 9e14689ea libvirt would try to run /sbin/raw to process the memory stream if the qemu.conf option snapshot_image_format is set. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1402726 --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index a8ae3fe0d0..2997f1f95d 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -3291,6 +3291,9 @@ qemuGetCompressionProgram(const char *imageFormat, if ((ret = qemuSaveCompressionTypeFromString(imageFormat)) < 0) goto error; + if (ret == QEMU_SAVE_FORMAT_RAW) + return QEMU_SAVE_FORMAT_RAW; + if (!(*compresspath = virFindFileInPath(imageFormat))) goto error;