gluster: Add missing argument to qemu_gluster_init() call
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
@@ -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
Quoted 10 lines · Andreas Färber
Commit
adccfbcd6020e928db93b2b4faf0dbd05ffbe016(block: gluster - add reopen support.) did not supply theqemu_gluster_init()Error ** argument, needed since commita7451cb850d115f257080aff3fbc54f255ebf8f7(gluster: correctly propagate errors).Pass through qemu_gluster_reopen_prepare()'s errp, as done in
qemu_gluster_open().Reviewed-by Stefan Hajnoczi <[email protected]>Signed-off-by Andreas Färber <[email protected]>
Applied to master, thanks. (Unfortunately my build machine isn't running a new enough ubuntu to be able to build the glusterfs support.)
-- PMM