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.
since v5: rename to bdrv_assign_node_name [Fam] add node-name to BlockdevOptionsBase [Kevin] add query-named-block-nodes name in commit message [Fam] make bdrv_lookup_bs interface more generic [Kevin] s/check/checks/ [Fam] s/implentation/implementation/ [Fam] use node names for references [Kevin] Benoît Canet (8): 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 both on command line and QMP. qmp: Add QMP query-named-block-nodes to list the named BlockDriverState nodes. qmp: Allow to change password on named block driver states. block: Create authorizations mechanism for external snapshot and resize. qmp: Allow block_resize to manipulate bs graph nodes. qmp: Allow to take external snapshots on bs graphs node. block: Use graph node name as reference in bdrv_file_open(). block.c | 214 ++++++++++++++++++++++++++++++++++++++++------ block/blkverify.c | 2 +- block/qapi.c | 109 +++++++++++------------ blockdev.c | 93 ++++++++++++++++---- hmp.c | 8 +- include/block/block.h | 23 +++-- include/block/block_int.h | 21 ++++- include/block/qapi.h | 1 + qapi-schema.json | 50 +++++++++-- qmp-commands.hx | 78 ++++++++++++++++- 10 files changed, 474 insertions(+), 125 deletions(-) -- 1.8.3.2