aboutsummaryrefslogtreecommitdiff
path: root/block/rbd.c
diff options
context:
space:
mode:
authorMaxim Levitsky <mlevitsk@redhat.com>2020-03-26 03:12:17 +0200
committerMax Reitz <mreitz@redhat.com>2020-03-26 14:44:33 +0100
commitb92902dfeaafbceaf744ab7473f2d070284f6172 (patch)
treee8f76729de84e45b86a398e289a256dfa2f67bac /block/rbd.c
parent66c8672d242e9a494216237648b7787649c2c970 (diff)
downloadqemu-b92902dfeaafbceaf744ab7473f2d070284f6172.zip
qemu-b92902dfeaafbceaf744ab7473f2d070284f6172.tar.gz
qemu-b92902dfeaafbceaf744ab7473f2d070284f6172.tar.bz2
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 'block/rbd.c')
-rw-r--r--block/rbd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/block/rbd.c b/block/rbd.c
index 84115d3..e637639 100644
--- a/block/rbd.c
+++ b/block/rbd.c
@@ -437,7 +437,8 @@ static int qemu_rbd_co_create(BlockdevCreateOptions *options, Error **errp)
return qemu_rbd_do_create(options, NULL, NULL, errp);
}
-static int coroutine_fn qemu_rbd_co_create_opts(const char *filename,
+static int coroutine_fn qemu_rbd_co_create_opts(BlockDriver *drv,
+ const char *filename,
QemuOpts *opts,
Error **errp)
{