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-users

Re: [Xen-users] Re: multiple disk images, how to?

To: Charles Duffy <cduffy@xxxxxxxxxxx>
Subject: Re: [Xen-users] Re: multiple disk images, how to?
From: Molle Bestefich <molle.bestefich@xxxxxxxxx>
Date: Tue, 17 Jan 2006 17:51:14 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 17 Jan 2006 16:58:52 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XTjEuLXA8iPcgxYWUqSf3VxgTbiaf9bZzoMDdBEmbpcjyCL/e0JMJ47lRipHsuyuaojYQMOKw2553hRwYYsgC98TRm7bmlgePxk1Zczc/jbvd2L16Tp8SMSRgDvK1XfB/u0KKsNETQuzL2EDlRI88VfbyTapAx0VAheptGCXwMA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <43CD128F.5030402@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <62b0912f0601090911n5565ceebsbb02dc4d5901d340@xxxxxxxxxxxxxx> <43C299D6.8060806@xxxxxxxxx> <62b0912f0601090926t60480591l5d350d351b581d3b@xxxxxxxxxxxxxx> <dqgcgr$vrh$2@xxxxxxxxxxxxx> <62b0912f0601170723xbd0437bt7ef84ea0470d4105@xxxxxxxxxxxxxx> <43CD128F.5030402@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Charles Duffy wrote:
> Think of it as if you were sourcing a file to get your config settings
> in bash. Someone could have logic like this:
>
> if [ -n "$foo" ] ; then
>     DISK="/dev/foo/bar${foo}"
> else
>     DISK="/dev/foo/baz"
> fi

Even if that's desirable for <insert insane scenario here>...

> ...and that would be valid, so you wouldn't want to call the config file
> invalid if it had more than one line matching ^[[:space:]]*DISK=

...you would want at least be able to throw a warning when it happens,
since regular users probably expect standard config-file semantics
from a config file, not Python semantics.

Another approach would be to note in each configuration file that it's
Python syntax.

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