From mboxrd@z Thu Jan 1 00:00:00 1970 From: Murillo Bernardes Subject: [PATCH] Fix xm shutdown/reboot 000... Date: Wed, 28 Dec 2005 11:13:51 -0200 Message-ID: <200512281113.51409.mfb@br.ibm.com> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_P+osDKc7ovhVTls" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: y_katase@soft.fujitsu.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_P+osDKc7ovhVTls Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 -- Murillo Fernandes Bernardes IBM Linux Technology Center --Boundary-00=_P+osDKc7ovhVTls Content-Type: text/x-diff; charset="iso-8859-1"; name="fix_shutdown_dom0.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="fix_shutdown_dom0.patch" 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) --Boundary-00=_P+osDKc7ovhVTls Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_P+osDKc7ovhVTls--