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 shutdown

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix xm shutdown
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Tue, 13 Dec 2005 18:54:05 +0900
Delivery-date: Tue, 13 Dec 2005 09:56:03 +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
Hi,

This patch adds error message to xm shutdown command. 

I ran xm shutdown command specifying Domain-0. (example: xm shutdown 0)
However, the error message was not shown. 
I think that the error message should be shown.

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best Regards,
 Kan

diff -r 0255f48b757f tools/python/xen/xm/shutdown.py
--- a/tools/python/xen/xm/shutdown.py   Sun Dec  4 19:12:00 2005
+++ b/tools/python/xen/xm/shutdown.py   Tue Dec 13 13:28:26 2005
@@ -92,6 +92,10 @@
     if len(args) < 1: opts.err('Missing domain')
     dom = args[0]
     mode = shutdown_mode(opts)  
+    dom0_name = sxp.child_value(server.xend_domain(0), 'name')
+    for x in [dom0_name, DOM0_ID]:
+        if x in dom:
+            opts.err("Can't specify Domain-0")
     shutdown(opts, [ dom ], mode, opts.vals.wait)
     
 def main(argv):




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

<Prev in Thread] Current Thread [Next in Thread>