]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu-hotplug: fix eject media
authorPavel Hrdina <phrdina@redhat.com>
Thu, 17 Mar 2016 15:38:28 +0000 (16:38 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 22 Mar 2016 12:26:46 +0000 (13:26 +0100)
commit0f4d31720430b4e3735064cc0d8f88a1a438e154
tree7355a278b3f2af50573030656c01318618a4f775
parentdc56475f72b2c220443154b33fee221099eeec7f
qemu-hotplug: fix eject media

QEMU changed the error message to:

        "Tray of device 'drive-sata0-0-1' is not open"

and they may change the error massage in the future.

This updates the code to not depend on the text from the error message
but only on error itself.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_hotplug.c
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_text.c