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

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


  • To: Charles Duffy <cduffy@xxxxxxxxxxx>
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

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