block/gluster: Add missing argument to qemu_gluster_init() call
Commitadccfbcd60
(block: gluster - add reopen support.) did not supply the qemu_gluster_init() Error ** argument, needed since commita7451cb850
(gluster: correctly propagate errors). Pass through qemu_gluster_reopen_prepare()'s errp, as done in qemu_gluster_open(). Cc: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
ac458e121c
commit
f55ea6297c
@ -364,7 +364,7 @@ static int qemu_gluster_reopen_prepare(BDRVReopenState *state,
|
|||||||
|
|
||||||
gconf = g_malloc0(sizeof(GlusterConf));
|
gconf = g_malloc0(sizeof(GlusterConf));
|
||||||
|
|
||||||
reop_s->glfs = qemu_gluster_init(gconf, state->bs->filename);
|
reop_s->glfs = qemu_gluster_init(gconf, state->bs->filename, errp);
|
||||||
if (reop_s->glfs == NULL) {
|
if (reop_s->glfs == NULL) {
|
||||||
ret = -errno;
|
ret = -errno;
|
||||||
goto exit;
|
goto exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user