qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH v2 2/2] block: gluster - add reopen support.
Date: Wed, 26 Feb 2014 16:04:53 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

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;
> +    int open_flags = 0;
> +
> +    assert(state != NULL);
> +    assert(state->bs != NULL);
> +
> +    state->opaque = g_malloc0(sizeof(BDRVGlusterReopenState));

Not worth respinning but if you use the type name, then the more concise
notation is:

state->opaque = g_new0(BDRVGlusterReopenState, 1);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]