qemu-block
[Top][All Lists]
Advanced

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

Re: [Qemu-block] [PATCH for-2.5 3/6] Add new block driver interface to a


From: Alberto Garcia
Subject: Re: [Qemu-block] [PATCH for-2.5 3/6] Add new block driver interface to add/delete a BDS's child
Date: Mon, 10 Aug 2015 10:19:31 +0200
User-agent: Notmuch/0.13.2 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu)

On Fri 31 Jul 2015 11:19:12 AM CEST, Wen Congyang wrote:

> +static const char *bdrv_get_id_or_node_name(BlockDriverState *bs)
> +{
> +    if (bs->blk) {
> +        return blk_name(bs->blk);
> +    }
> +
> +    return bs->node_name ? bs->node_name : "";
> +}

You don't need to add this function, you can use
bdrv_get_device_or_node_name() instead.

Berto



reply via email to

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