Re: [Qemu-block] [PATCH 2/9] block: User BdrvChild callback for device name

2016-03-29 Thread Max Reitz
On 22.03.2016 20:36, Kevin Wolf wrote: > In order to get rid of bs->blk for bdrv_get_device_name() and > bdrv_get_device_or_node_name(), ask all parents for their name and > simply pick the first one. > > Signed-off-by: Kevin Wolf > --- > block.c | 22 -- >

[Qemu-block] [PATCH 2/9] block: User BdrvChild callback for device name

2016-03-22 Thread Kevin Wolf
In order to get rid of bs->blk for bdrv_get_device_name() and bdrv_get_device_or_node_name(), ask all parents for their name and simply pick the first one. Signed-off-by: Kevin Wolf --- block.c | 22 -- block/block-backend.c | 6 ++ include/block/bl