diff options
author | Markus Armbruster | 2014-06-27 19:24:13 +0200 |
---|---|---|
committer | Kevin Wolf | 2014-06-27 20:00:00 +0200 |
commit | 518848a214ff67bbaea087552a709afde4f88fa5 (patch) | |
tree | 8eaf6b9bd3818d155574d265a6d23d786a57372b /qapi | |
parent | virtio-blk: Rename complete_request_early to complete_request_vring (diff) | |
download | qemu-518848a214ff67bbaea087552a709afde4f88fa5.tar.gz qemu-518848a214ff67bbaea087552a709afde4f88fa5.tar.xz qemu-518848a214ff67bbaea087552a709afde4f88fa5.zip |
blockjob: Fix recent BLOCK_JOB_READY regression
Commit bcada37 dropped the (up to now undocumented) members type, len,
offset, speed, breaking tests/qemu-iotests/040 and 041.
Restore and document them. This fixes 040, and partially fixes 041.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Tested-By: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'qapi')
-rw-r--r-- | qapi/block-core.json | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/qapi/block-core.json b/qapi/block-core.json index a46cdbe6aa..6f41f84c44 100644 --- a/qapi/block-core.json +++ b/qapi/block-core.json @@ -1558,12 +1558,25 @@ # # Emitted when a block job is ready to complete # +# @type: job type +# # @device: device name # +# @len: maximum progress value +# +# @offset: current progress value. On success this is equal to len. +# On failure this is less than len +# +# @speed: rate limit, bytes per second +# # Note: The "ready to complete" status is always reset by a @BLOCK_JOB_ERROR # event # # Since: 1.3 ## { 'event': 'BLOCK_JOB_READY', - 'data': { 'device': 'str' } } + 'data': { 'type' : 'BlockJobType', + 'device': 'str', + 'len' : 'int', + 'offset': 'int', + 'speed' : 'int' } } |