From: Ian Jackson Subject: Re: [PATCH] Fix stubdom-dm using "grep" improperly [and 1 more messages] Date: Tue, 11 Jan 2011 16:42:49 +0000 Message-ID: <19756.34953.50436.947990@mariner.uk.xensource.com> References: <4D2A94A0.6030505@nuclearfallout.net> <4D2AB68E.6050804@nuclearfallout.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4D2A94A0.6030505@nuclearfallout.net>, <4D2AB68E.6050804@nuclearfallout.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: John Weekes , Keir Fraser , Stefano Stabellini Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org John Weekes writes ("[Xen-devel] [PATCH] Fix stubdom-dm using "grep" improperly"): > stubdom-dm uses "grep" on "xm list" output to determine whether it is > already running. The existing behavior is to use "grep $domname-dm" but > this will result in a false-positive in the case of another domU running > whose name ends with the full new name; for instance, if "abctest-dm" is > running, a new "test-dm" will spin forever, waiting for it the end. Urgh. Thanks for this patch. This code is pretty horrid stuff, I have to say. I have applied your fix to xen-unstable. Keir, can you please also commit this to 4.0-testing ? It applies cleanly. Stefano: does xl in stubdom mode still use stubdom-dm ? If so can it please not ? Certainly "xm list" isn't going to work! Ian.