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: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] block-nbd script and example config
From: Anthony Liguori <aliguori@xxxxxxxxxx>
Date: Wed, 19 Oct 2005 17:07:05 -0500
Cc: Xen development list <xen-devel@xxxxxxxxxxxxxxxxxxx>, Kurt Garloff <garloff@xxxxxxx>
Delivery-date: Wed, 19 Oct 2005 22:04:30 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <A95E2296287EAD4EB592B5DEEFCE0E9D32E4B9@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <A95E2296287EAD4EB592B5DEEFCE0E9D32E4B9@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0.7 (X11/20051013)
Ian Pratt wrote:

disk = [ 'nbd:134.100.233.115 20004,hda1,w' ]

I think having the space in the export device name is just a little too
nauseating :-)

Could we make the script take ip:port and then turn the ':' into a space
when invoking nbdclient?

On this subject, I think it would be less confusing if we configured
disks using a syntax more akin to that which we use for networking e.g.:
I actually like this idea a lot. I'm not a huge fan of the current block device configuration.

disks = [ 'export=phy:/dev/sda1, target=/dev/sda1, options=rw',
         'export=phy:/dev/vg/my_usr, target=/dev/sdb1, options=ro' ]

I know its late in the day to be making changes like this, but it
doesn't hurt to canvass opinion...
The only thing to think about is how do handle file devices with spaces in the filename. This is going to be common I think.

Comma and spaces are valid filename characters. I think : is probably the safest separator since it's used a lot.

I'd also do away with all the fancy stuff we have to build the command
line and just have a single command line variable that we assemble
everything in to within the config file. The current magic just makes
things more confusing.
Yes :-)

Regards,

Anthony Liguori

Ian





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



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