]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: hotplug: Fix error reported when cdrom tray is locked
authorPeter Krempa <pkrempa@redhat.com>
Mon, 23 May 2016 14:32:06 +0000 (16:32 +0200)
committerCole Robinson <crobinso@redhat.com>
Thu, 23 Jun 2016 20:00:49 +0000 (16:00 -0400)
commit2c1bff5accfeb6a71090fa4bfba5a8e3c7df84d2
tree65a21d7805289bb84d00dce9d7f084dbc0eead96
parent49f05e044359bb43c3aa79e464285cce4ff44a4c
qemu: hotplug: Fix error reported when cdrom tray is locked

Commit 1fad65d49aae364576bd91352a001249510f8d4e used a really big hammer
and overwrote the error message that might be reported by qemu if the
tray is locked. Fix it by reporting the error only if no error is
currently set.

Error after commit mentioned above:
error: internal error: timed out waiting for disk tray status update

New error:
error: internal error: unable to execute QEMU command 'eject': Tray of
device 'drive-ide0-0-0' is not open

(cherry picked from commit 2e75da42e41af0cd48ca6f75d0606b40a366cc54)
src/qemu/qemu_hotplug.c