summaryrefslogtreecommitdiffstats
path: root/qerror.h
diff options
context:
space:
mode:
authorAnthony Liguori2012-10-05 02:53:50 +0200
committerAnthony Liguori2012-10-05 02:53:50 +0200
commit05d4f2f2ca6053bfea2e97cf324901ca18e49c76 (patch)
treeeeac556997cb7a8d45472919fe9b59a41ba9ed71 /qerror.h
parentMerge remote-tracking branch 'qmp/queue/qmp' into staging (diff)
parentqemu-iotests: add tests for streaming error handling (diff)
downloadqemu-05d4f2f2ca6053bfea2e97cf324901ca18e49c76.tar.gz
qemu-05d4f2f2ca6053bfea2e97cf324901ca18e49c76.tar.xz
qemu-05d4f2f2ca6053bfea2e97cf324901ca18e49c76.zip
Merge remote-tracking branch 'kwolf/for-anthony' into staging
* kwolf/for-anthony: (30 commits) qemu-iotests: add tests for streaming error handling qemu-iotests: map underscore to dash in QMP argument names blkdebug: process all set_state rules in the old state stream: add on-error argument block: introduce block job error iostatus: reorganize io error code iostatus: change is_read to a bool iostatus: move BlockdevOnError declaration to QAPI iostatus: rename BlockErrorAction, BlockQMPEventAction qemu-iotests: add test for pausing a streaming operation qmp: add block-job-pause and block-job-resume block: add support for job pause/resume qmp: add 'busy' member to BlockJobInfo block: add block_job_query block: move job APIs to separate files block: fix documentation of block_job_cancel_sync qerror/block: introduce QERR_BLOCK_JOB_NOT_ACTIVE qemu-iotests: add initial tests for live block commit QAPI: add command for live block commit, 'block-commit' block: helper function, to find the base image of a chain ...
Diffstat (limited to 'qerror.h')
-rw-r--r--qerror.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/qerror.h b/qerror.h
index d0a76a4f71..c91708cc3c 100644
--- a/qerror.h
+++ b/qerror.h
@@ -48,6 +48,12 @@ void assert_no_error(Error *err);
#define QERR_BASE_NOT_FOUND \
ERROR_CLASS_GENERIC_ERROR, "Base '%s' not found"
+#define QERR_BLOCK_JOB_NOT_ACTIVE \
+ ERROR_CLASS_DEVICE_NOT_ACTIVE, "No active block job on device '%s'"
+
+#define QERR_BLOCK_JOB_PAUSED \
+ ERROR_CLASS_GENERIC_ERROR, "The block job for device '%s' is currently paused"
+
#define QERR_BLOCK_FORMAT_FEATURE_NOT_SUPPORTED \
ERROR_CLASS_GENERIC_ERROR, "Block format '%s' used by device '%s' does not support feature '%s'"