[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: "Anthony Liguori" <aliguori@xxxxxxxxxx>
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.