aboutsummaryrefslogtreecommitdiff
path: root/include/block
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2018-03-01 17:36:19 +0100
committerKevin Wolf <kwolf@redhat.com>2018-03-09 15:17:47 +0100
commit2fd6163884d74e74dd1ef54ab229d15c61d0b4cb (patch)
tree42dd511fe872ce7489ac3768ffc9522d7759191c /include/block
parent2b148f392b2bfeba76d3e6d9607c3bd072350e8c (diff)
downloadqemu-2fd6163884d74e74dd1ef54ab229d15c61d0b4cb.zip
qemu-2fd6163884d74e74dd1ef54ab229d15c61d0b4cb.tar.gz
qemu-2fd6163884d74e74dd1ef54ab229d15c61d0b4cb.tar.bz2
block: convert bdrv_check callback to coroutine_fn
Suggested-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <1516279431-30424-8-git-send-email-pbonzini@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/block_int.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h
index e391cae..a84cc04 100644
--- a/include/block/block_int.h
+++ b/include/block/block_int.h
@@ -307,8 +307,9 @@ struct BlockDriver {
* Returns 0 for completed check, -errno for internal errors.
* The check results are stored in result.
*/
- int (*bdrv_check)(BlockDriverState *bs, BdrvCheckResult *result,
- BdrvCheckMode fix);
+ int coroutine_fn (*bdrv_co_check)(BlockDriverState *bs,
+ BdrvCheckResult *result,
+ BdrvCheckMode fix);
int (*bdrv_amend_options)(BlockDriverState *bs, QemuOpts *opts,
BlockDriverAmendStatusCB *status_cb,