From: Keir Fraser Subject: Re: [PATCH] Fix argument check of xm reboot command (3) Date: Mon, 10 Jul 2006 15:16:07 +0100 Message-ID: <3b98a90af48a9474fa18e19ed971fd46@cl.cam.ac.uk> References: <74C6A116752B1Ckanno.masaki@jp.fujitsu.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <74C6A116752B1Ckanno.masaki@jp.fujitsu.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Masaki Kanno Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 6 Jul 2006, at 17:08, Masaki Kanno wrote: > 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. > Problem 2: Can not reboot/shutdown domain of domain name '0'. Wouldn't this be better checked in xend after it has converted domain name to domid, and an appropriate error string returned to the RPC caller? Putting the checking in xm seems a bit unnatural and means that other callers do not benefit. -- Keir