Masaki Kanno
2006-Nov-17 12:50 UTC
[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@jp.fujitsu.com> Best regards, Kan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel