WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Rename set-vcpus to vcpu-set (match docs) and update sho

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Rename set-vcpus to vcpu-set (match docs) and update short help page.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 05 Dec 2005 12:08:07 +0000
Delivery-date: Mon, 05 Dec 2005 12:09:45 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID e74d110dd2a28d83cbf64bbb79dbcf514d73fddf
# Parent  f94923f2dd14c862b070e133132b4f240f956525
Rename set-vcpus to vcpu-set (match docs) and update short help page.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r f94923f2dd14 -r e74d110dd2a2 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Sun Dec  4 11:06:38 2005
+++ b/tools/python/xen/xm/main.py       Sun Dec  4 16:29:46 2005
@@ -72,8 +72,7 @@
 sysrq_help =   "sysrq   <DomId> <letter>         Send a sysrq to a domain"
 domid_help =   "domid <DomName>                  Converts a domain name to a 
domain id"
 domname_help = "domname <DomId>                  Convert a domain id to a 
domain name"
-set_vcpus_help = """set-vcpus <DomId> <VCPUs>        Enable the specified 
number of VCPUs in a
-                                    domain"""
+vcpu_set_help = """vcpu-set <DomId> <VCPUs>         Set the number of VCPUs 
for a domain"""
 vcpu_list_help = "vcpu-list <DomId>                List the VCPUs for a domain 
(or all domains)"
 vcpu_pin_help = "vcpu-pin <DomId> <VCPU> <CPUs>   Set which cpus a VCPU can 
use" 
 dmesg_help =   "dmesg [--clear]                  Read or clear Xen's message 
buffer"
@@ -110,7 +109,6 @@
     "destroy",
     "help",
     "list",
-    "mem-max",
     "mem-set",
     "migrate",
     "pause",
@@ -120,6 +118,7 @@
     "shutdown",
     "top",
     "unpause",
+    "vcpu-set",
     ]
 
 domain_commands = [
@@ -141,8 +140,9 @@
     "sysrq",
     "top",
     "unpause",
-    "set-vcpus",
+    "vcpu-list",
     "vcpu-pin",
+    "vcpu-set",
     ]
 
 host_commands = [
@@ -575,8 +575,8 @@
     from xen.xend.XendClient import server
     server.xend_domain_mem_target_set(dom, mem_target)
     
-def xm_set_vcpus(args):
-    arg_check(args, "set-vcpus", 2)
+def xm_vcpu_set(args):
+    arg_check(args, "vcpu-set", 2)
     
     from xen.xend.XendClient import server
     server.xend_domain_set_vcpus(args[0], int(args[1]))
@@ -799,8 +799,8 @@
     "mem-set": xm_mem_set,
     # cpu commands
     "vcpu-pin": xm_vcpu_pin,
-    "set-vcpus": xm_set_vcpus,
     "vcpu-list": xm_vcpu_list,
+    "vcpu-set": xm_vcpu_set,
     # special
     "pause": xm_pause,
     "unpause": xm_unpause,
@@ -840,6 +840,7 @@
 
 aliases = {
     "balloon": "mem-set",
+    "set-vcpus": "vcpu-set",
     "vif-list": "network-list",
     "vbd-create": "block-create",
     "vbd-destroy": "block-destroy",
@@ -862,8 +863,8 @@
         usage()
 
 def deprecated(old,new):
-    err('Option %s is deprecated, and will be removed in future!!!' % old)
-    err('Option %s is the new replacement, see "xm help %s" for more info' % 
(new, new))
+    print >>sys.stderr, (
+        "Command %s is deprecated.  Please use xm %s instead." % (old, new))
 
 def usage(cmd=None):
     if cmd == 'create':

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Rename set-vcpus to vcpu-set (match docs) and update short help page., Xen patchbot -unstable <=