mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
qemu: Fix media eject with qemu-0.12.*
In qemu-0.12.* "device '...' is locked" message was changed to "Device ..." so libvirt was no longer detecting this as an error.
This commit is contained in:
parent
6c8f24751e
commit
e586f57487
@ -63,6 +63,7 @@ sigpipe
|
||||
snprintf
|
||||
socket
|
||||
stpcpy
|
||||
strcasestr
|
||||
strchrnul
|
||||
strndup
|
||||
strerror
|
||||
|
@ -934,7 +934,7 @@ int qemuMonitorTextEjectMedia(qemuMonitorPtr mon,
|
||||
/* If the command failed qemu prints:
|
||||
* device not found, device is locked ...
|
||||
* No message is printed on success it seems */
|
||||
if (strstr(reply, "device ")) {
|
||||
if (strcasestr(reply, "device ")) {
|
||||
qemuReportError(VIR_ERR_OPERATION_FAILED,
|
||||
_("could not eject media on %s: %s"), devname, reply);
|
||||
goto cleanup;
|
||||
|
Loading…
x
Reference in New Issue
Block a user