[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [XM][XEND] Speed up xm list
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |