]> 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 21:51:58 +0000 (15:51 -0600)
commit759c7195f0f484c6953709fb9908a467ec12e78b
treefb4df61e8541f75c4477f4a118ee78993addffba
parent3feed5c1000b79c89d00287e92e4e4d01d0b06a5
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>
(cherry picked from commit 04ee70bfda21bfdb48b55f074aed25fc75bb9226)
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_text.c