On Wed 03 Jun 2015 09:43:48 PM CEST, Max Reitz wrote:
> bdrv_is_inserted() should be invoked recursively on the children of
> quorum.
>
> Signed-off-by: Max Reitz <[email protected]>
> Reviewed-by: Eric Blake <[email protected]>
> ---
> +static bool quorum_is_inserted(BlockDriverState *bs)
> +{
> + BDRVQuorumState *s = bs->opaque;
> + int i;
> +
> + for (i = 0; i < s->num_children; i++) {
> + if (!bdrv_is_inserted(s->bs[i])) {
> + return false;
> + }
> + }
> +
> + return true;
> +}
> +
I wonder if it can actually happen that only some of the BDS are
inserted :-?
Berto