Re: [Qemu-devel] [PATCH v2 2/2] block: gluster - add reopen support.

2014-02-26 Thread Stefan Hajnoczi
On Mon, Feb 17, 2014 at 11:11:12AM -0500, Jeff Cody wrote: +static int qemu_gluster_reopen_prepare(BDRVReopenState *state, + BlockReopenQueue *queue, Error **errp) +{ +int ret = 0; +BDRVGlusterReopenState *reop_s; +GlusterConf *gconf = NULL;

[Qemu-devel] [PATCH v2 2/2] block: gluster - add reopen support.

2014-02-17 Thread Jeff Cody
Gluster does parse open flags in its .bdrv_open() implementation, and the .bdrv_reopen_* implementations need to do the same. A new gluster connection to the image file to be created is established in the .bdrv_reopen_prepare(), and the image file opened with the new flags. If this is