]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Change return value of SaveImageGetCompressionProgram
authorJim Fehlig <jfehlig@suse.com>
Wed, 12 Feb 2025 04:46:59 +0000 (21:46 -0700)
committerJim Fehlig <jfehlig@suse.com>
Mon, 3 Mar 2025 17:05:11 +0000 (10:05 -0700)
commit1564607cd01acf251d051989207d4189ba6723c1
tree9021357331b447d9781b2bf87753f3da39e9bfb9
parent757fa62cfdeef5887ddce546561aed178f3bdbb1
qemu: Change return value of SaveImageGetCompressionProgram

qemuSaveImageGetCompressionProgram is a bit overloaded. Along with
getting a compression program, it checks the validity of the image
format and returns the integer representation of the format. Change
the function to only handle retrieving the specified compression
program, returning success or failure. Checking the validity of
the image format can be left to the calling functions.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_driver.c
src/qemu/qemu_saveimage.c
src/qemu/qemu_saveimage.h
src/qemu/qemu_snapshot.c