From: Ian Jackson Subject: Re: [PATCH, v2]: xl: Check domain existance when doing domain identifier lookups Date: Tue, 25 Jan 2011 17:29:21 +0000 Message-ID: <19775.2161.316187.773037@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> <1295895194.28333.34.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: <1295895194.28333.34.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 ("Re: [PATCH, v2]: xl: Check domain existance when doing domain identifier lookups"): > Only if was_name is true... If they pass a number then we need to check > explicitly. Perhaps it would be better to put that check in an else {} > statement though. I think it's fine to get a whole bunch of errors rather than just one, if you say "xl something " and the domain doesn't exist. Ian.