]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_driver: check caps after starting block job
authorMichael Chapman <mike@very.puzzling.org>
Wed, 8 Apr 2015 06:51:51 +0000 (16:51 +1000)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 8 Apr 2015 09:16:19 +0000 (11:16 +0200)
commitcfcdf5ff01aa96a0afcf8f1984967c7eaa2b4330
tree094ad519975bba5e715384ef4dc349a2a48468f2
parent72df8314f02ac575b8407ab1d0d4fbfe82affd9c
qemu_driver: check caps after starting block job

Currently we check qemuCaps before starting the block job. But qemuCaps
isn't available on a stopped domain, which means we get a misleading
error message in this case:

  # virsh domstate example
  shut off

  # virsh blockjob example vda
  error: unsupported configuration: block jobs not supported with this QEMU binary

Move the qemuCaps check into the block job so that we are guaranteed the
domain is running.

Signed-off-by: Michael Chapman <mike@very.puzzling.org>
src/qemu/qemu_driver.c