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 behavior of xm shutdown/reboot command for Domai

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix behavior of xm shutdown/reboot command for Domain-0
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Fri, 17 Nov 2006 21:50:51 +0900
Delivery-date: Fri, 17 Nov 2006 04:51:19 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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 fixes behavior of xm shutdown/reboot command for Domain-0.
>From wrong operation, we can prevent a system down with it.

Without this patch you see:
 # xm shutdown Domain-0
 # 
 Broadcast message from root (Fri Nov 17 19:13:24 2006):
 
 The system is going down for system halt NOW!

 # xm reboot 0
 #
 Broadcast message from root (console) (Fri Nov 17 21:26:08 2006):

 The system is going down for reboot NOW!


With this patch applied:
 # xm shutdown 0
 Error: Cannot shutdown and reboot privileged domain Domain-0
 Usage: xm shutdown <Domain> [-waRH]
 
 Shutdown a domain.

 # xm reboot Domain-0
 Error: Cannot shutdown and reboot privileged domain Domain-0
 Usage: xm reboot <Domain> [-wa]
 
 Reboot a domain.


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

Best regards,
 Kan

Attachment: shutdown_and_reboot.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Fix behavior of xm shutdown/reboot command for Domain-0, Masaki Kanno <=