quorum.c (adf2e451f357e993f173ba9b4176dbf3e65fee7e) quorum.c (b441dc71c0b7e8f488a6ebc2aa781b08a3a05038)
1/*
2 * Quorum Block filter
3 *
4 * Copyright (C) 2012-2014 Nodalink, EURL.
5 *
6 * Author:
7 * Benoît Canet <benoit.canet@irqsave.net>
8 *

--- 1005 unchanged lines hidden (view full) ---

1014 bdrv_drained_begin(bs);
1015
1016 /* We can safely add the child now */
1017 bdrv_ref(child_bs);
1018
1019 child = bdrv_attach_child(bs, child_bs, indexstr, &child_format, errp);
1020 if (child == NULL) {
1021 s->next_child_index--;
1/*
2 * Quorum Block filter
3 *
4 * Copyright (C) 2012-2014 Nodalink, EURL.
5 *
6 * Author:
7 * Benoît Canet <benoit.canet@irqsave.net>
8 *

--- 1005 unchanged lines hidden (view full) ---

1014 bdrv_drained_begin(bs);
1015
1016 /* We can safely add the child now */
1017 bdrv_ref(child_bs);
1018
1019 child = bdrv_attach_child(bs, child_bs, indexstr, &child_format, errp);
1020 if (child == NULL) {
1021 s->next_child_index--;
1022 bdrv_unref(child_bs);
1023 goto out;
1024 }
1025 s->children = g_renew(BdrvChild *, s->children, s->num_children + 1);
1026 s->children[s->num_children++] = child;
1027
1028out:
1029 bdrv_drained_end(bs);
1030}

--- 133 unchanged lines hidden ---
1022 goto out;
1023 }
1024 s->children = g_renew(BdrvChild *, s->children, s->num_children + 1);
1025 s->children[s->num_children++] = child;
1026
1027out:
1028 bdrv_drained_end(bs);
1029}

--- 133 unchanged lines hidden ---