]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Keep QEMU host drive prefix in BlkIoTune
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 1 Nov 2012 17:20:55 +0000 (18:20 +0100)
committerEric Blake <eblake@redhat.com>
Thu, 1 Nov 2012 19:03:26 +0000 (13:03 -0600)
commit04ee70bfda21bfdb48b55f074aed25fc75bb9226
treee11a04bd1c4462489e8ac6b667766642f1d9854d
parentd1236faa17581c8bf33ef20e71e7b7bba49423fc
qemu: Keep QEMU host drive prefix in BlkIoTune

The QEMU -drive id= begins with libvirt's QEMU host drive prefix
("drive-"), which is stripped off in several places two convert between
host ("-drive") and guest ("-device") device names.

In the case of BlkIoTune it is unnecessary to strip the QEMU host drive
prefix because we operate on "info block"/"query-block" output that uses
host drive names.

Stripping the prefix incorrectly caused string comparisons to fail since
we were comparing the guest device name against the host device name.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_text.c