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-devel

[Xen-devel] [PATCH] cpus configure analysis has easy miss: fixed

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] cpus configure analysis has easy miss: fixed
From: "Satoshi Uchida" <s-uchida@xxxxxxxxxxxxx>
Date: Fri, 13 Jan 2006 11:23:20 +0900
Delivery-date: Fri, 13 Jan 2006 02:30:04 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcYX6FIrJdHBnIiVSNaS4gI/8x3Dpg==
There are easy miss in cpus configuration analysis.

When using remove character '^', cpu number is accepted only single
figures.

This patch is fixed above problem.


diff -r 1e1107e3d894 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py Wed Jan 11 19:14:27 2006
+++ b/tools/python/xen/xend/XendDomainInfo.py Fri Jan 13 06:19:23 2006
@@ -329,7 +329,7 @@
                 else:
                     # remove this element from the list 
                     if c[0] == '^':
-                        cpus = [x for x in cpus if x != int(c[1])]
+                        cpus = [x for x in cpus if x != int(c[1:])]
                     else:
                         cpus.append(int(c))


Satoshi UCHIDA

Attachment: XendDomainInfo.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] cpus configure analysis has easy miss: fixed, Satoshi Uchida <=