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] [xen-unstable] [XM][XEND] Speed up xm list

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XM][XEND] Speed up xm list
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 02 Nov 2006 22:08:35 +0000
Delivery-date: Thu, 02 Nov 2006 21:41:38 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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 Alastair Tse <atse@xxxxxxxxxxxxx>
# Node ID ddf523b09100cc9177d75b729f64296d4eeddd11
# Parent  f297eef12823da23dec386d83db912d66419d85e
[XM][XEND] Speed up xm list

Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/server/XMLRPCServer.py |    4 ++--
 tools/python/xen/xm/main.py                  |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff -r f297eef12823 -r ddf523b09100 
tools/python/xen/xend/server/XMLRPCServer.py
--- a/tools/python/xen/xend/server/XMLRPCServer.py      Thu Oct 05 17:29:19 
2006 +0100
+++ b/tools/python/xen/xend/server/XMLRPCServer.py      Thu Oct 05 17:29:20 
2006 +0100
@@ -53,12 +53,12 @@ def domain(domid):
     info = lookup(domid)
     return fixup_sxpr(info.sxpr())
 
-def domains(detail=1):
+def domains(detail=1, full = 0):
     if detail < 1:
         return XendDomain.instance().list_names()
     else:
         domains = XendDomain.instance().list_sorted()
-        return map(lambda dom: fixup_sxpr(dom.sxpr()), domains)
+        return map(lambda dom: fixup_sxpr(dom.sxpr(not full)), domains)
 
 def domain_create(config):
     info = XendDomain.instance().domain_create(config)
diff -r f297eef12823 -r ddf523b09100 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Thu Oct 05 17:29:19 2006 +0100
+++ b/tools/python/xen/xm/main.py       Thu Oct 05 17:29:20 2006 +0100
@@ -483,7 +483,7 @@ def xm_restore(args):
 
 def getDomains(domain_names, full = 0):
     if domain_names:
-        return [server.xend.domain(dom) for dom in domain_names]
+        return [server.xend.domain(dom, full) for dom in domain_names]
     else:
         return server.xend.domains(1)
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XM][XEND] Speed up xm list, Xen patchbot-unstable <=