Re: [PATCH] qemu: Report error if qemu monitor command not found for BlockJob

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/22/2011 07:52 AM, Osier Yang wrote:
* src/qemu/qemu_monitor_json.c: Handle error "CommandNotFound" and
report the error.

* src/qemu/qemu_monitor_text.c: If a sub info command is not found,
it prints the output of "help info", for other commands,
"unknown command" is printed.

Without this patch, libvirt always report:

An error occurred, but the cause is unknown

---
  src/qemu/qemu_monitor_json.c |   34 ++++++++++++++++++-----------
  src/qemu/qemu_monitor_text.c |   47 +++++++++++++++++++++++++++++++++---------
  2 files changed, 58 insertions(+), 23 deletions(-)

See also Adam's patch approach for the same bug; can we agree on a common patch before pushing anything?
https://www.redhat.com/archives/libvir-list/2011-August/msg00985.html

--
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]