summaryrefslogtreecommitdiff
path: root/blockdev.c
diff options
context:
space:
mode:
authorBenoƮt Canet <benoit@irqsave.net>2014-01-23 21:31:34 +0100
committerKevin Wolf <kwolf@redhat.com>2014-01-24 16:07:08 +0100
commitc13163fba151f0be5176eaf55907bc1dbff3a1d4 (patch)
tree07a5cbbf02a889f372c6650e288f0dcf7dd23eb7 /blockdev.c
parent6913c0c2ce00c0e886b2bd20b05073090fa5308a (diff)
downloadqemu-c13163fba151f0be5176eaf55907bc1dbff3a1d4.tar.gz
qemu-c13163fba151f0be5176eaf55907bc1dbff3a1d4.tar.bz2
qemu-c13163fba151f0be5176eaf55907bc1dbff3a1d4.zip
qmp: Add QMP query-named-block-nodes to list the named BlockDriverState nodes.
Signed-off-by: Benoit Canet <benoit@irqsave.net> Reviewed-by: Fam Zheng <famz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'blockdev.c')
-rw-r--r--blockdev.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/blockdev.c b/blockdev.c
index 386109a8d4..0bfe38027b 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -1952,6 +1952,11 @@ void qmp_drive_backup(const char *device, const char *target,
}
}
+BlockDeviceInfoList *qmp_query_named_block_nodes(Error **errp)
+{
+ return bdrv_named_nodes_list();
+}
+
#define DEFAULT_MIRROR_BUF_SIZE (10 << 20)
void qmp_drive_mirror(const char *device, const char *target,