From: "Stephen C. Tweedie" Subject: Re: [Patch] Fix blktap to work with a bootloader Date: Tue, 10 Oct 2006 15:56:02 +0100 Message-ID: <1160492162.5951.9.camel@sisko.scot.redhat.com> References: <1159465004.8884.23.camel@sisko.scot.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1159465004.8884.23.camel@sisko.scot.redhat.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: "xen-devel@lists.xensource.com" Cc: Andrew Warfield , Julian Chesterfield List-Id: xen-devel@lists.xenproject.org Hi all, On Thu, 2006-09-28 at 18:36 +0100, Stephen C. Tweedie wrote: > The fix is to split only at the first ":", and then to split again > if we detect "tap:" as the image type. Whoops, xen is still broken --- > Signed-off-by: Stephen Tweedie > --- a/tools/python/xen/util/blkif.py Thu Sep 28 17:09:09 2006 +0100 > +++ b/tools/python/xen/util/blkif.py Thu Sep 28 18:05:08 2006 +0100 > @@ -64,9 +64,11 @@ def blkdev_uname_to_file(uname): > if uname.find(":") != -1: > - (typ, fn) = uname.split(":") > + (typ, fn) = uname.split(":", 1) > if typ == "phy" and not fn.startswith("/"): > fn = "/dev/%s" %(fn,) > + if typ == "tap": > + (typ, fn) = fn.split(":", 1) > return fn was what I posted, but only the second two new lines actually got committed to the xenbits repository. Without the first split(":", 1) change, we'll split at _all_ the ":"s in the uname, and if there are more than one, then the assignment to the (typ,fn) 2-tuple will fail. Can this please be fixed properly? It's just a 3-character commit that's left. :-) btw, is the process of merging patches from email being done completely manually? git certainly has really good pull-from-email scripts that avoid this sort of oversight, but I'm not sure hg is quite so well equipped. Cheers, Stephen