Re: [Qemu-devel] [PATCH 0/3] Add bdrv_get_device_or_node_name()

2015-03-19 Thread Alberto Garcia
On Thu, Mar 19, 2015 at 03:37:13PM -0400, Max Reitz wrote: > > This series adds a new function bdrv_get_device_or_node_name(), > > that returns the node name if there is no device name for that > > node. Since both the device and the node name live in the same > > namespace, there's no ambiguity.

Re: [Qemu-devel] [PATCH 0/3] Add bdrv_get_device_or_node_name()

2015-03-19 Thread Max Reitz
On 2015-03-19 at 11:43, Alberto Garcia wrote: We have several cases of error messages related to BlockDriverState that expect it to have a device name. However many of those can happen in nodes that don't have a device name associated so the generated error messages are not very meaningful. T

[Qemu-devel] [PATCH 0/3] Add bdrv_get_device_or_node_name()

2015-03-19 Thread Alberto Garcia
We have several cases of error messages related to BlockDriverState that expect it to have a device name. However many of those can happen in nodes that don't have a device name associated so the generated error messages are not very meaningful. This series adds a new function bdrv_get_device_o