]> xenbits.xensource.com Git - libvirt.git/commit
qemu: block: Use correct alias when extracting disk node names
authorPeter Krempa <pkrempa@redhat.com>
Mon, 25 Sep 2017 09:44:00 +0000 (11:44 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 25 Sep 2017 12:38:15 +0000 (14:38 +0200)
commit93575f345116fe1413f6fe3109227b8be2f416da
treedaee49b16351bca657a59b36bd578c445b37fccf
parent8b2fd3b148a3ad48f4a7c60b71e93687b9e30cef
qemu: block: Use correct alias when extracting disk node names

The alias recorded in disk->info.alias is the alias for the frontend
device but we are interested in the backend drive. This messed up the
disk node name extraction code as qemu reports the drive alias in the
block query commands. This was broken in the node name detector
refactoring done in commit 0175dc6ea024d

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1494327
src/qemu/qemu_block.c