Skip to contentSkip to conversation

gluster: Add missing argument to qemu_gluster_init() call

PATCH In review Andreas Färber 2 participants 2 messages Mar 4, 2014 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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().

---
 block/gluster.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/gluster.c +1 -1
index 54ee9b7..fe7a10c 100644
@@ -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;
Signature · 1 line
1.8.4.5
#1 lore raw
Quoted 10 lines · Andreas Färber

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().

Applied to master, thanks. (Unfortunately my build machine isn't running a new enough ubuntu to be able to build the glusterfs support.)

-- PMM