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 argument check of xm reboot command (3)

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Fix argument check of xm reboot command (3)
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Fri, 07 Jul 2006 01:08:45 +0900
Delivery-date: Thu, 06 Jul 2006 09:09:40 -0700
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,

I tested unlikely operations about the xm reboot/shutdown command. 
As a result, I found the following problems.

Problem 1: Can reboot/shutdown Domain-0 by mistake.
  # xm list
  Name                              ID Mem(MiB) VCPUs State  Time(s)
  Domain-0                           0     1024     2 r-----    31.0
  # xm reboot 0
  Error: Can't specify Domain-0
  # xm reboot 00
  # 
  Broadcast message from root (console) (Thu Jul  6 23:50:09 2006):
  
  The system is going down for reboot NOW!


Problem 2: Can not reboot/shutdown domain of domain name '0'.
  # xm list
  Name                              ID Mem(MiB) VCPUs State  Time(s)
  0                                  1      256     1 -b----     3.5
  Domain-0                           0     1024     2 r-----    29.8
  # xm reboot 0
  Error: Can't specify Domain-0


I fixed these problems with this patch.

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

Best regards,
 Kan

Attachment: reboot-3.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>