]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: blockjob: Call qemuDomainSupportsBlockJobs only on online VMs
authorPeter Krempa <pkrempa@redhat.com>
Thu, 30 Apr 2015 14:01:18 +0000 (16:01 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 30 Apr 2015 14:46:42 +0000 (16:46 +0200)
commitf06d7daaa9f19d3f96f0fd3e8f007b1368fe0319
tree53429eb9b49e9b2ee16e09faacf5ab52cb86c348
parent6280294574473760b585ed2298e9512499ad7816
qemu: blockjob: Call qemuDomainSupportsBlockJobs only on online VMs

Since the qemu capabilities are not initialized for offline VMs the
caller might get suboptimal error message:

$ virsh blockjob VM PATH --bandwidth 1
error: unsupported configuration: block jobs not supported with this QEMU binary

Move the checks after we make sure that the VM is alive.
src/qemu/qemu_driver.c