aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2014-09-15 12:19:14 +0200
committerKevin Wolf <kwolf@redhat.com>2014-12-10 10:31:11 +0100
commite6bb31ec6f7ef7c78c897390ecc6c6a34a7f9f5a (patch)
treef9950cdb89114726f074ebffac2af142188fbc61 /monitor.c
parent8d6adccda25d75dc152b68d15ac75e1670e59b23 (diff)
block/hmp: Allow node-name in 'info block'
The optional parameter specifying a block device allows now to use a node-name instead of a drive name (and therefore to inspect any node in the graph). The new -n options allows listing all named nodes instead of BlockBackends. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/monitor.c b/monitor.c
index f1031a1e34..f63a3aae28 100644
--- a/monitor.c
+++ b/monitor.c
@@ -2628,10 +2628,10 @@ static mon_cmd_t info_cmds[] = {
},
{
.name = "block",
- .args_type = "verbose:-v,device:B?",
- .params = "[-v] [device]",
+ .args_type = "nodes:-n,verbose:-v,device:B?",
+ .params = "[-n] [-v] [device]",
.help = "show info of one block device or all block devices "
- "(and details of images with -v option)",
+ "(-n: show named nodes; -v: show details)",
.mhandler.cmd = hmp_info_block,
},
{