diff options
author | Wenchao Xia <xiawenc@linux.vnet.ibm.com> | 2013-06-06 12:28:01 +0800 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-06-07 13:45:01 +0200 |
commit | e73fe2b46c38776288415ce7bc8ba3fcd23721c4 (patch) | |
tree | 10245fa97cd9539811870912b6562fc388ce28d4 /monitor.c | |
parent | bd093a365e8d1437f437a48ddca3ed08283b3090 (diff) |
hmp: add parameters device and -v for info block
With these parameters, user can choose the information to be showed,
to avoid message flood in the monitor.
Signed-off-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -2472,9 +2472,10 @@ static mon_cmd_t info_cmds[] = { }, { .name = "block", - .args_type = "", - .params = "", - .help = "show the block devices", + .args_type = "verbose:-v,device:B?", + .params = "[-v] [device]", + .help = "show info of one block device or all block devices " + "(and details of images with -v option)", .mhandler.cmd = hmp_info_block, }, { |