]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virterror: Add error message for unsupported operations.
authorPeter Krempa <pkrempa@redhat.com>
Thu, 9 Aug 2012 13:12:12 +0000 (15:12 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Sat, 11 Aug 2012 08:03:00 +0000 (10:03 +0200)
commite9a24e3e3d480ea155fb93f62b5ed9d1590fcd08
tree999dc6f137ee59b1b362665f50c8eaa12d7916d4
parent54264111ff557582b2793189143bec33a8006076
virterror: Add error message for unsupported operations.

This patch introduces a new error code VIR_ERR_OPERATION_UNSUPPORTED to
mark error messages regarding operations that failed due to lack of
support on the hypervisor or other than libvirt issues.

The code is first used in reporting error if qemu does not support block
IO tuning variables yielding error message:
error: Unable to get block I/O throttle parameters
error: Operation not supported: block_io_throttle field
'total_bytes_sec' missing in qemu's output

instead of:
error: Unable to get block I/O throttle parameters
error: internal error cannot read total_bytes_sec
include/libvirt/virterror.h
src/qemu/qemu_monitor_json.c
src/util/virterror.c