]> git.proxmox.com Git - mirror_qemu.git/commit
rbd: Assign s->snap/image_name in qemu_rbd_open()
authorKevin Wolf <kwolf@redhat.com>
Fri, 16 Feb 2018 17:54:52 +0000 (18:54 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 9 Mar 2018 14:17:47 +0000 (15:17 +0100)
commitd41a55885de18f4fe8dddb8ae88be80497f8eb05
treecb87f33599c3f1e63b8914e251fca5f0e7c19bc9
parent1bebea37b43223a45c39dcbc158f3cec6164fdbf
rbd: Assign s->snap/image_name in qemu_rbd_open()

Now that the options are already available in qemu_rbd_open() and not
only parsed in qemu_rbd_connect(), we can assign s->snap and
s->image_name there instead of passing the fields by reference to
qemu_rbd_connect().

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