[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Fix behavior of xm shutdown/reboot command for Domain-0



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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.