WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] block-nbd script and example config

To: "Anthony Liguori" <aliguori@xxxxxxxxxx>
Subject: RE: [Xen-devel] block-nbd script and example config
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Wed, 26 Oct 2005 23:00:32 +0100
Cc: Xen development list <xen-devel@xxxxxxxxxxxxxxxxxxx>, Kurt Garloff <garloff@xxxxxxx>
Delivery-date: Wed, 26 Oct 2005 21:57:55 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcXZm35B3MhWK7MATySuo3MeHfnvpgA3NPYQ
Thread-topic: [Xen-devel] block-nbd script and example config
 
> Yup.  Here's another example:
> 
> disks = [ 'export=file:/home/anthony/images/Fedora Core 
> 4.img, target=/dev/sda1, options=rw',
>
> This is going to become difficult to parse (we could split 
> with ',' here but then what if we have commas in files).  We 
> could support an escaping mechanism but then it would require 
> triple escapes like:
> 
> disks = [ 'export=file:/home/anthony/image/Fedora Core 4\\\, 
> x86-64.img, target=/dev/sda1, options=rw' ]

The best way of doing this is:

disks = [ 'export=file:"/home/anthony/images/Fedora Core 4.img",
target=/dev/sda1, options=rw',

We'd remove double quotes and treat anything between them as a single
token. I think this would work OK.

Ian


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel