]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Fix get blkiodevtune for a disk that has been hot unplugged
authorLuyao Huang <lhuang@redhat.com>
Fri, 14 Nov 2014 03:21:10 +0000 (11:21 +0800)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 14 Nov 2014 22:30:55 +0000 (17:30 -0500)
commit72b4151f858df3564b82a8ebba60778b996b6dce
tree57fea7fa3b5768691a844ea268ec67ef4a01b68a
parent5c08b12521f60dcb86e69bd26d18c12e2c1131ac
qemu: Fix get blkiodevtune for a disk that has been hot unplugged

https://bugzilla.redhat.com/show_bug.cgi?id=1164080

After a disk is hotunplugged a subsequent call to qemuDomainGetBlockIoTune
to get the --config settings of that disk will fail because the disk is no
longer found by qemuDiskPathToAlias causing an unexpected failure.

Since only the --live flag needs to have the disk device pointer, move the
fetch inside the (flags & VIR_DOMAIN_AFFECT_LIVE) condition. This will also
affect the results if no flags are provided or the --current flag is provided.

Signed-off-by: Luyao Huang <lhuang@redhat.com>
src/qemu/qemu_driver.c