diff options
author | Markus Armbruster <armbru@redhat.com> | 2014-06-27 19:24:13 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-06-27 20:00:00 +0200 |
commit | 518848a214ff67bbaea087552a709afde4f88fa5 (patch) | |
tree | 8eaf6b9bd3818d155574d265a6d23d786a57372b /blockjob.c | |
parent | d64c60a75fde0fc40f7c97acbc972dea59db0162 (diff) | |
download | qemu-518848a214ff67bbaea087552a709afde4f88fa5.zip qemu-518848a214ff67bbaea087552a709afde4f88fa5.tar.gz qemu-518848a214ff67bbaea087552a709afde4f88fa5.tar.bz2 |
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 'blockjob.c')
-rw-r--r-- | blockjob.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -270,7 +270,11 @@ void block_job_event_completed(BlockJob *job, const char *msg) void block_job_event_ready(BlockJob *job) { - qapi_event_send_block_job_ready(bdrv_get_device_name(job->bs), &error_abort); + qapi_event_send_block_job_ready(job->driver->job_type, + bdrv_get_device_name(job->bs), + job->len, + job->offset, + job->speed, &error_abort); } BlockErrorAction block_job_error_action(BlockJob *job, BlockDriverState *bs, |