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 16:23:04 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 17 Jan 2006 15:30:39 +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=TtjUmkG4AFXJY0jnyBq2tCTgcbxcKVBw4OV42q93HWU/HitMvIlhM8y3cXTRYztTC+nQjyAkaJUvfrktDb77lu/wNLI+U7eFMOHvg7GSLrijHaHoBo7cgQokdifoYO/gE6V4V0n2wO6fgtwwKdrBL/ALOte3kHcI6hpX9iOchdc=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <dqgcgr$vrh$2@xxxxxxxxxxxxx>
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Charles Duffy wrote:
> Molle Bestefich wrote:
> > (Maybe there should be a syntax example in 'man xmdomain.cfg' for
> > really dumb people like myself..  Maybe the parser should complain
> > when it meets two disk statements in one config file..  Humn.)
>
> Well, it's not actually using a custom parser -- the syntax is Python.
> To have the Python interpreter barf when a variable is defined multiple
> times would be a trick.

I don't know Python.
Is it easy to do something like this (bash code):

disk_entries=`grep -E ^disk < $config_file | wc -l`
if [ $disk_entries -gt 1 ]; then
  echo Uh-oh...
fi

?

If it is, I'd be willing to take a look at it :-p.

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