qemu-block
[Top][All Lists]
Advanced

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

Re: [Qemu-block] [PATCH 06/13] block: Handle child references in bdrv_re


From: Kevin Wolf
Subject: Re: [Qemu-block] [PATCH 06/13] block: Handle child references in bdrv_reopen_queue()
Date: Tue, 12 Feb 2019 17:55:22 +0100
User-agent: Mutt/1.10.1 (2018-07-13)

Am 12.02.2019 um 17:28 hat Kevin Wolf geschrieben:
> > -        child_key_dot = g_strdup_printf("%s.", child->name);
> > -        qdict_extract_subqdict(explicit_options, NULL, child_key_dot);
> > -        qdict_extract_subqdict(options, &new_child_options, child_key_dot);
> > -        g_free(child_key_dot);
> > +        /* Check if the options contain a child reference */
> > +        if (qdict_haskey(options, child->name)) {
> > +            const char *childref = qdict_get_try_str(options, child->name);
> > +            /*
> > +             * The current child must not be reopened if the child
> > +             * reference does not point to it.
> > +             */
> > +            if (g_strcmp0(childref, child->bs->node_name)) {
> 
> This is where we would break the inheritance relationship.

Oops, correcting myself: It's not. We may only do that in the commit
stage, of course.

Kevin



reply via email to

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