From: "Yoshinori Katase" Subject: [PATCH] Fixing bug/typo in main.py Date: Thu, 22 Dec 2005 13:10:43 +0900 Message-ID: <20051222041011.E148D1C00C@mail2-sv.soft.fujitsu.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_000F_01C606F9.1D947610" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. ------=_NextPart_000_000F_01C606F9.1D947610 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 : Best Regards, Yoshinori Katase diff -r 934470721c46 tools/python/xen/xm/main.py --- a/tools/python/xen/xm/main.py Wed Dec 21 19:18:19 2005 +++ b/tools/python/xen/xm/main.py Thu Dec 22 11:05:02 2005 @@ -75,7 +75,7 @@ vcpu_set_help = """vcpu-set Set the number of VCPUs for a domain""" vcpu_list_help = "vcpu-list List the VCPUs for a domain (or all domains)" vcpu_pin_help = "vcpu-pin Set which cpus a VCPU can use" -dmesg_help = "dmesg [--clear] Read or clear Xen's message buffer" +dmesg_help = "dmesg [-c|--clear] Read or clear Xen's message buffer" info_help = "info Get information about the xen host" rename_help = "rename Rename a domain" log_help = "log Print the xend log" @@ -672,7 +672,7 @@ server.xend_node_clear_dmesg() def xm_log(args): - arg_check(args, 'xm-log', 0) + arg_check(args, "log", 0) from xen.xend.XendClient import server print server.xend_node_log() @@ -845,8 +845,8 @@ "balloon": "mem-set", "set-vcpus": "vcpu-set", "vif-list": "network-list", - "vbd-create": "block-create", - "vbd-destroy": "block-destroy", + "vbd-create": "block-attach", + "vbd-destroy": "block-detach", "vbd-list": "block-list", } ------=_NextPart_000_000F_01C606F9.1D947610 Content-Type: application/octet-stream; name="main_typo.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="main_typo.patch" diff -r 934470721c46 tools/python/xen/xm/main.py=0A= --- a/tools/python/xen/xm/main.py Wed Dec 21 19:18:19 2005=0A= +++ b/tools/python/xen/xm/main.py Thu Dec 22 11:17:01 2005=0A= @@ -75,7 +75,7 @@=0A= vcpu_set_help =3D """vcpu-set Set the number of = VCPUs for a domain"""=0A= vcpu_list_help =3D "vcpu-list List the VCPUs for = a domain (or all domains)"=0A= vcpu_pin_help =3D "vcpu-pin Set which cpus a = VCPU can use" =0A= -dmesg_help =3D "dmesg [--clear] Read or clear Xen's = message buffer"=0A= +dmesg_help =3D "dmesg [-c|--clear] Read or clear Xen's = message buffer"=0A= info_help =3D "info Get information = about the xen host"=0A= rename_help =3D "rename Rename a domain"=0A= log_help =3D "log Print the xend log"=0A= @@ -672,7 +672,7 @@=0A= server.xend_node_clear_dmesg()=0A= =0A= def xm_log(args):=0A= - arg_check(args, 'xm-log', 0)=0A= + arg_check(args, "log", 0)=0A= =0A= from xen.xend.XendClient import server=0A= print server.xend_node_log()=0A= @@ -845,8 +845,8 @@=0A= "balloon": "mem-set",=0A= "set-vcpus": "vcpu-set",=0A= "vif-list": "network-list",=0A= - "vbd-create": "block-create",=0A= - "vbd-destroy": "block-destroy",=0A= + "vbd-create": "block-attach",=0A= + "vbd-destroy": "block-detach",=0A= "vbd-list": "block-list",=0A= }=0A= =0A= ------=_NextPart_000_000F_01C606F9.1D947610 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ------=_NextPart_000_000F_01C606F9.1D947610--