ia64/xen-unstable

changeset 12095:ddf523b09100

[XM][XEND] Speed up xm list

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Thu Oct 05 17:29:20 2006 +0100 (2006-10-05)
parents f297eef12823
children f592a17acd0f
files tools/python/xen/xend/server/XMLRPCServer.py tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xend/server/XMLRPCServer.py	Thu Oct 05 17:29:19 2006 +0100
     1.2 +++ b/tools/python/xen/xend/server/XMLRPCServer.py	Thu Oct 05 17:29:20 2006 +0100
     1.3 @@ -53,12 +53,12 @@ def domain(domid):
     1.4      info = lookup(domid)
     1.5      return fixup_sxpr(info.sxpr())
     1.6  
     1.7 -def domains(detail=1):
     1.8 +def domains(detail=1, full = 0):
     1.9      if detail < 1:
    1.10          return XendDomain.instance().list_names()
    1.11      else:
    1.12          domains = XendDomain.instance().list_sorted()
    1.13 -        return map(lambda dom: fixup_sxpr(dom.sxpr()), domains)
    1.14 +        return map(lambda dom: fixup_sxpr(dom.sxpr(not full)), domains)
    1.15  
    1.16  def domain_create(config):
    1.17      info = XendDomain.instance().domain_create(config)
     2.1 --- a/tools/python/xen/xm/main.py	Thu Oct 05 17:29:19 2006 +0100
     2.2 +++ b/tools/python/xen/xm/main.py	Thu Oct 05 17:29:20 2006 +0100
     2.3 @@ -483,7 +483,7 @@ def xm_restore(args):
     2.4  
     2.5  def getDomains(domain_names, full = 0):
     2.6      if domain_names:
     2.7 -        return [server.xend.domain(dom) for dom in domain_names]
     2.8 +        return [server.xend.domain(dom, full) for dom in domain_names]
     2.9      else:
    2.10          return server.xend.domains(1)
    2.11