summaryrefslogtreecommitdiffstats
path: root/include/block
diff options
context:
space:
mode:
authorMaxim Levitsky2020-03-26 02:12:17 +0100
committerMax Reitz2020-03-26 14:44:33 +0100
commitb92902dfeaafbceaf744ab7473f2d070284f6172 (patch)
treee8f76729de84e45b86a398e289a256dfa2f67bac /include/block
parentblock/mirror: fix use after free of local_err (diff)
downloadqemu-b92902dfeaafbceaf744ab7473f2d070284f6172.tar.gz
qemu-b92902dfeaafbceaf744ab7473f2d070284f6172.tar.xz
qemu-b92902dfeaafbceaf744ab7473f2d070284f6172.zip
block: pass BlockDriver reference to the .bdrv_co_create
This will allow the reuse of a single generic .bdrv_co_create implementation for several drivers. No functional changes. Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com> Message-Id: <20200326011218.29230-2-mlevitsk@redhat.com> Reviewed-by: Denis V. Lunev <den@openvz.org> Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/block_int.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h
index ae9c4da4d0..57c8ea24b2 100644
--- a/include/block/block_int.h
+++ b/include/block/block_int.h
@@ -135,7 +135,8 @@ struct BlockDriver {
void (*bdrv_close)(BlockDriverState *bs);
int coroutine_fn (*bdrv_co_create)(BlockdevCreateOptions *opts,
Error **errp);
- int coroutine_fn (*bdrv_co_create_opts)(const char *filename,
+ int coroutine_fn (*bdrv_co_create_opts)(BlockDriver *drv,
+ const char *filename,
QemuOpts *opts,
Error **errp);
int (*bdrv_make_empty)(BlockDriverState *bs);