rbd: Factor out qemu_rbd_connect()
authorKevin Wolf <kwolf@redhat.com>
Thu, 15 Feb 2018 18:13:47 +0000 (19:13 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 9 Mar 2018 14:17:47 +0000 (15:17 +0100)
commit3d9136f972d3dc678fc46de8fc126ba00a46508e
tree87666e31d121b478a86d9126d8b83305a7b85b77
parent71c87815f9e0386b6f3e22942adc956fd603c82f
rbd: Factor out qemu_rbd_connect()

The code to establish an RBD connection is duplicated between open and
create. In order to be able to share the code, factor out the code from
qemu_rbd_open() as a first step.

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