]> git.proxmox.com Git - mirror_qemu.git/commit
block/qdev: Let 'drive' property fall back to node name
authorKevin Wolf <kwolf@redhat.com>
Thu, 4 Aug 2016 12:09:07 +0000 (14:09 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 8 Aug 2016 11:05:43 +0000 (13:05 +0200)
commitbd7c41765b9afa93a7f1a42e1ee353282230e2b7
tree3ccf20ae297ffd3156ffb1484ed428f6038c401c
parentcf5198d58088e3b416fe517b3946e5120b342761
block/qdev: Let 'drive' property fall back to node name

If a qdev block device is created with an anonymous BlockBackend (i.e.
a node name rather than a BB name was given for the drive property),
qdev used to return an empty string when the property was read. This
patch fixes it to return the node name instead.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
hw/core/qdev-properties-system.c