From: Ian Jackson Subject: Re: [PATCH] Remus: support both tap and tap2 style disk specs Date: Fri, 18 Feb 2011 12:23:17 +0000 Message-ID: <19806.25781.861352.712775@mariner.uk.xensource.com> References: <0ee537d24ca0fb0e5e74.1297922929@athos.nss.cs.ubc.ca> <19805.28968.926985.531441@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "rshriram@cs.ubc.ca" Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Shriram Rajagopalan writes ("Re: [Xen-devel] [PATCH] Remus: support both = tap and tap2 style disk specs"): > On Thu, Feb 17, 2011 at 11:04 AM, Ian Jackson wrote: > > Shriram Rajagopalan writes ("[Xen-devel] [PATCH] Remus: support both = tap and tap2 style disk specs"): > >> - =A0 =A0 =A0 =A0if not disk.uname.startswith('tap:remus:') and not = disk.uname.startswith('tap:tapdisk:remus:'): > >> + =A0 =A0 =A0 =A0disktype =3D re.match("tap2?:.*(remus.*)\|", disk.u= name) > >> + =A0 =A0 =A0 =A0if disktype =3D=3D None: > > > > This seems quite a striking change. =A0What is the tap2 remus syntax > > like ? > > > There is no change in remus syntax. > remus part of the disk spec just requires "remus:BackupHost:Port|" to > immediately follow major driver name. so, >=20 > disk=3D tap2:remus:BackupHost:Port|aio:volname ... Your regexp would match tap2:aio:file:/path/containing/remus/and/with/a/pipe/symbol| > the problem is with the initial prefix "tap2:" string. > Which could be tap: or tap2: or tap:tapdisk or tap2:tapdisk based on > http://wiki.xensource.com/xenwiki/blktap2 Yes, this is very unpleasant. But at the very least I think you should be somewhat more careful and at least expect the thing you eat at the front not to contain slashes. > Though as i noted in an earlier email, libxl doesnt accept tap2 while x= end > accepts tap2. We have fixed that very recently - in the last day or two. Ian.