ia64/xen-unstable

changeset 8442:ffa8e85a9e0b

This patch fixes a bug/typo of main.py.
1. show option "-c" of help of xm dmesg
2. fix value of parameter of arg_check of xm log
3. fix aliases of vbd-create and vbd-destroy

Signed-off-by Yoshinori Katase <y_katase@soft.fujitsu.com>
author emellor@leeni.uk.xensource.com
date Thu Dec 22 15:38:10 2005 +0000 (2005-12-22)
parents 6375713d0e41
children c9184cc4d1d1
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Thu Dec 22 15:50:06 2005 +0100
     1.2 +++ b/tools/python/xen/xm/main.py	Thu Dec 22 15:38:10 2005 +0000
     1.3 @@ -75,7 +75,7 @@ domname_help = "domname <DomId>         
     1.4  vcpu_set_help = """vcpu-set <DomId> <VCPUs>         Set the number of VCPUs for a domain"""
     1.5  vcpu_list_help = "vcpu-list <DomId>                List the VCPUs for a domain (or all domains)"
     1.6  vcpu_pin_help = "vcpu-pin <DomId> <VCPU> <CPUs>   Set which cpus a VCPU can use" 
     1.7 -dmesg_help =   "dmesg [--clear]                  Read or clear Xen's message buffer"
     1.8 +dmesg_help =   "dmesg [-c|--clear]               Read or clear Xen's message buffer"
     1.9  info_help =    "info                             Get information about the xen host"
    1.10  rename_help =  "rename <DomId> <New Name>        Rename a domain"
    1.11  log_help =     "log                              Print the xend log"
    1.12 @@ -672,7 +672,7 @@ its contents if the [-c|--clear] flag is
    1.13          server.xend_node_clear_dmesg()
    1.14  
    1.15  def xm_log(args):
    1.16 -    arg_check(args, 'xm-log', 0)
    1.17 +    arg_check(args, "log", 0)
    1.18      
    1.19      from xen.xend.XendClient import server
    1.20      print server.xend_node_log()
    1.21 @@ -845,8 +845,8 @@ aliases = {
    1.22      "balloon": "mem-set",
    1.23      "set-vcpus": "vcpu-set",
    1.24      "vif-list": "network-list",
    1.25 -    "vbd-create": "block-create",
    1.26 -    "vbd-destroy": "block-destroy",
    1.27 +    "vbd-create": "block-attach",
    1.28 +    "vbd-destroy": "block-detach",
    1.29      "vbd-list": "block-list",
    1.30      }
    1.31