This series is based on a cleanup of qemuSaveImageGetCompressionProgram [1]
and demonstrates the usefulness of that cleanup. Patch1 adds the
VIR_DOMAIN_SAVE_PARAM_IMAGE_FORMAT typed parameter to virDomainSaveParams,
allowing to specify the image format on a per-operation basis. The format
can still be set driver-wide in qemu.conf. Patch2 provides the
implementation in the qemu driver.
[1]
https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/SK...
Jim Fehlig (2):
include: Define constant for save image format
qemu: Add support for 'image_format' typed parameter
include/libvirt/libvirt-domain.h | 13 +++++++++++++
src/libvirt-domain.c | 3 +++
src/qemu/qemu_driver.c | 12 ++++++++++--
3 files changed, 26 insertions(+), 2 deletions(-)
--
2.43.0