From: Andreas Färber Date: Tue, 4 Mar 2014 20:00:28 +0000 (+0100) Subject: block/gluster: Add missing argument to qemu_gluster_init() call X-Git-Tag: v2.0.0-rc0~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f55ea6297cc0224fe4934b90ff5343b620b14669;p=thirdparty%2Fqemu.git block/gluster: Add missing argument to qemu_gluster_init() call Commit adccfbcd6020e928db93b2b4faf0dbd05ffbe016 (block: gluster - add reopen support.) did not supply the qemu_gluster_init() Error ** argument, needed since commit a7451cb850d115f257080aff3fbc54f255ebf8f7 (gluster: correctly propagate errors). Pass through qemu_gluster_reopen_prepare()'s errp, as done in qemu_gluster_open(). Cc: Stefan Hajnoczi Signed-off-by: Andreas Färber Reviewed-by: Stefan Hajnoczi Signed-off-by: Peter Maydell --- diff --git a/block/gluster.c b/block/gluster.c index 54ee9b7d932..fe7a10c30b2 100644 --- a/block/gluster.c +++ b/block/gluster.c @@ -364,7 +364,7 @@ static int qemu_gluster_reopen_prepare(BDRVReopenState *state, 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) { ret = -errno; goto exit;