The following series introduce a new file.node-name property in order to be able to give a name to each BlockDriverState of the graph.
It also define "undefined" as a special value for node-name; a value that will be used to indicate to the management that it can not manipulate a node because it was not named. After this patchset is merged I would like to take care of presenting the graph to the management. (HMP &&/|| QMP) Eric: Do you have some ideas on this topic ? Best regards Benoît Benoît Canet (2): block: Add bs->node_name to hold the name of a bs node of the bs graph. block: Allow the user to define "node-name" option. block.c | 72 +++++++++++++++++++++++++++++++++++------------ block/blkverify.c | 2 +- block/iscsi.c | 2 +- block/vmdk.c | 2 +- block/vvfat.c | 4 +-- blockdev.c | 8 +++--- hw/block/xen_disk.c | 2 +- include/block/block.h | 3 +- include/block/block_int.h | 9 +++++- qemu-img.c | 6 ++-- qemu-io.c | 2 +- qemu-nbd.c | 2 +- 12 files changed, 79 insertions(+), 35 deletions(-) -- 1.8.3.2