All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix xm shutdown/reboot 000...
@ 2005-12-28 13:13 Murillo Bernardes
  0 siblings, 0 replies; only message in thread
From: Murillo Bernardes @ 2005-12-28 13:13 UTC (permalink / raw)
  To: xen-devel; +Cc: y_katase

[-- Attachment #1: Type: text/plain, Size: 251 bytes --]

Hi,

This is a simple way to fix xm shutdown and xm reboot, so that it do not 
shutdown dom0 when the parameter has more than one zero.

Signed-off-by: Murillo F. Bernardes <mfb@br.ibm.com>

-- 
Murillo Fernandes Bernardes
IBM Linux Technology Center

[-- Attachment #2: fix_shutdown_dom0.patch --]
[-- Type: text/x-diff, Size: 424 bytes --]

diff -r 22b408023c8e tools/python/xen/xm/shutdown.py
--- a/tools/python/xen/xm/shutdown.py	Tue Dec 27 18:55:48 2005
+++ b/tools/python/xen/xm/shutdown.py	Wed Dec 28 11:05:10 2005
@@ -93,7 +93,7 @@
 
 def main_dom(opts, args):
     if len(args) < 1: opts.err('Missing domain')
-    dom = args[0]
+    dom = args[0].lstrip("0") or "0"
     mode = shutdown_mode(opts)  
     shutdown(opts, [ dom ], mode, opts.vals.wait)
     

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-12-28 13:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-28 13:13 [PATCH] Fix xm shutdown/reboot 000 Murillo Bernardes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.