]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Get/return compressedpath program
authorJohn Ferlan <jferlan@redhat.com>
Tue, 13 Sep 2016 16:05:39 +0000 (12:05 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 26 Sep 2016 11:44:42 +0000 (07:44 -0400)
commit9e14689ea5885595fc1b6dd8203aa0aa83a6eb88
tree038697c526a267d6fcd5a40af0eb8907a56cb92d
parent9477b4a0a51a184de531bcc68321c3835404fb80
qemu: Get/return compressedpath program

Based upon a patch from Chen Hanxiao <chenhanxiao@gmail.com>, rather than
need to call virFindFileInPath twice, let's just save the path and pass it
along with the compressed type. (NB: the second call would be in virExec as
called from virCommandRunAsync which is called from qemuMigrationToFile
using the argument 'compressor' which up to this point would be the string
from the cfg file that isn't the fully qualified path).

Since we now have the path, we can remove qemuCompressProgramName which
would return NULL or the string representation of the compress type.
src/qemu/qemu_driver.c