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] Fix xm list <Domname> so that it triggers an interna

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Fix xm list <Domname> so that it triggers an internal state update in Xend
From: Anthony Liguori <aliguori@xxxxxxxxxx>
Date: Wed, 31 Aug 2005 17:29:55 -0500
Delivery-date: Wed, 31 Aug 2005 22:28:45 +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
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050317)
Fix xm list <Domname> so that it triggers an internal state update in Xend.

Regards,

Anthony Liguori
# HG changeset patch
# User Anthony Liguori <aliguori@xxxxxxxxxx>
# Node ID eb6ce6e19ac4eb1bde83eaae8cea7a35ed6350e7
# Parent  8af8ddf9107832cfe509ffe8e9f7ee65856b2fa3
Fix xm list so that we trigger Xend to update its internal state even when
info is requested for individual domains.

Signed-off-by: Anthony Liguori

diff -r 8af8ddf91078 -r eb6ce6e19ac4 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Wed Aug 31 14:53:43 2005
+++ b/tools/python/xen/xm/main.py       Wed Aug 31 22:43:31 2005
@@ -222,11 +222,16 @@
 
     domsinfo = []
     from xen.xend.XendClient import server
-    if n == 0:
-        doms = server.xend_domains()
-        doms.sort()
-    else:
+
+    # FIXME
+    # a bit of a hack, we need to call xend_domains to refresh xend's internal
+    # domain state.
+    doms = server.xend_domains()
+    doms.sort()
+
+    if n != 0:
         doms = params
+
     for dom in doms:
         info = server.xend_domain(dom)
         domsinfo.append(parse_doms_info(info))
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>