[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] Re: multiple disk images, how to?
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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |