diff options
author | Peter Krempa <pkrempa@redhat.com> | 2012-08-09 15:12:12 +0200 |
---|---|---|
committer | Peter Krempa <pkrempa@redhat.com> | 2012-08-11 10:03:00 +0200 |
commit | e9a24e3e3d480ea155fb93f62b5ed9d1590fcd08 (patch) | |
tree | 999dc6f137ee59b1b362665f50c8eaa12d7916d4 /include | |
parent | build: fix binary location in stap files --with-driver-modules (diff) | |
download | libvirt-e9a24e3e3d480ea155fb93f62b5ed9d1590fcd08.tar.gz libvirt-e9a24e3e3d480ea155fb93f62b5ed9d1590fcd08.tar.bz2 libvirt-e9a24e3e3d480ea155fb93f62b5ed9d1590fcd08.zip |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/libvirt/virterror.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libvirt/virterror.h b/include/libvirt/virterror.h index ad8e10169..913fc5d31 100644 --- a/include/libvirt/virterror.h +++ b/include/libvirt/virterror.h @@ -277,6 +277,8 @@ typedef enum { VIR_ERR_MIGRATE_UNSAFE = 81, /* Migration is not safe */ VIR_ERR_OVERFLOW = 82, /* integer overflow */ VIR_ERR_BLOCK_COPY_ACTIVE = 83, /* action prevented by block copy job */ + VIR_ERR_OPERATION_UNSUPPORTED = 84, /* The requested operation is not + supported */ } virErrorNumber; /** |