From: Ian Jackson Subject: Re: [PATCH, v2]: xl: Check domain existance when doing domain identifier lookups Date: Tue, 25 Jan 2011 17:28:24 +0000 Message-ID: <19775.2104.742709.639002@mariner.uk.xensource.com> References: <1295888759.28333.14.camel@qabil.uk.xensource.com> <201101241827.46797.Christoph.Egger@amd.com> <1295891031.28333.25.camel@qabil.uk.xensource.com> <1295893129.28333.31.camel@qabil.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1295893129.28333.31.camel@qabil.uk.xensource.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: Gianni Tedesco Cc: Christoph Egger , "xen-devel@lists.xensource.com" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org Gianni Tedesco writes ("[PATCH, v2]: xl: Check domain existance when doing domain identifier lookups"): > It occurs to me that the last patch won't fix it for anything but > destroy. We should bail with a nice error for any command looking up a > domain that doesn't exist and be consistent with name vs. numeric ID. I think the destroy logic needs to be different because if libxl_domain_info fails for some other reason than ERROR_INVAL (ie "domain does not exist"), destruction it needs to try all of the other destruction steps. So if you do a general change like this the destroy case probably needs to bypass it. Ian.