]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Report error if qemu monitor command not found for BlockJob
authorOsier Yang <jyang@redhat.com>
Wed, 24 Aug 2011 06:39:42 +0000 (14:39 +0800)
committerOsier Yang <jyang@redhat.com>
Wed, 24 Aug 2011 06:39:42 +0000 (14:39 +0800)
commit10b100240f997139fb44186e2d2b41f933ae8a5e
tree854b94531e75b70041465b74364415925b96f34c
parent678cd0f04bb03e3e56abbd845b2caa79e34da804
qemu: Report error if qemu monitor command not found for BlockJob

* 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

This patch was adapted from a patch by Osier Yang <jyang@redhat.com> to
break out detection of unrecognized text monitor commands into a separate
function.

Signed-off-by: Adam Litke <agl@us.ibm.com>
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_text.c