aboutsummaryrefslogtreecommitdiff
path: root/block/gluster.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2014-03-04 21:00:28 +0100
committerPeter Maydell <peter.maydell@linaro.org>2014-03-04 20:20:57 +0000
commitf55ea6297cc0224fe4934b90ff5343b620b14669 (patch)
tree67209632e87e18ade36b063857e1d59abeecea92 /block/gluster.c
parentac458e121c398c8619b2a7735e87e37b73c0b687 (diff)
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 <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>
Diffstat (limited to 'block/gluster.c')
-rw-r--r--block/gluster.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/gluster.c b/block/gluster.c
index 54ee9b7d93..fe7a10c30b 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;