]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
monitor: detect that eject fails because the tray is locked
authorPavel Hrdina <phrdina@redhat.com>
Mon, 29 Jun 2015 14:18:53 +0000 (16:18 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Thu, 9 Jul 2015 16:02:05 +0000 (18:02 +0200)
commit256496e1499fcc7b20a51919eb4471987a36dbab
treef04d31ddfa668853a5a57020a0b8002339c07fa5
parent6b278f3ad6fa0c8b0366a0858546808e15a6676f
monitor: detect that eject fails because the tray is locked

Modify the eject monitor functions to parse the return code and detect,
whether the error contains "is locked" to report this type of failure to
upper layers.

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