OSDN Git Service

rbd: Use qemu_rbd_connect() in qemu_rbd_do_create()
authorKevin Wolf <kwolf@redhat.com>
Fri, 16 Feb 2018 17:48:25 +0000 (18:48 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 9 Mar 2018 14:17:47 +0000 (15:17 +0100)
commitaa045c2d37c831541607c0a81212f9d3f2dacad9
treeb6b2d35e54d93c2dede670fd505bd4528e7b2a9f
parentd41a55885de18f4fe8dddb8ae88be80497f8eb05
rbd: Use qemu_rbd_connect() in qemu_rbd_do_create()

This is almost exactly the same code. The differences are that
qemu_rbd_connect() supports BlockdevOptionsRbd.server and that the cache
mode is set explicitly.

Supporting 'server' is a welcome new feature for image creation.
Caching is disabled by default, so leave it that way.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block/rbd.c