|
|
|
|
|
|
|
|
|
|
xen-users
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
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-users] multiple disk images, how to?, Molle Bestefich
- Re: [Xen-users] multiple disk images, how to?, Christopher G. Stach II
- Re: [Xen-users] multiple disk images, how to?, Molle Bestefich
- [Xen-users] Re: multiple disk images, how to?, Charles Duffy
- Re: [Xen-users] Re: multiple disk images, how to?,
Molle Bestefich <=
- Re: [Xen-users] Re: multiple disk images, how to?, Charles Duffy
- Re: [Xen-users] Re: multiple disk images, how to?, Molle Bestefich
- Re: [Xen-users] Re: multiple disk images, how to?, Charles Duffy
- Re: [Xen-users] Re: multiple disk images, how to?, Molle Bestefich
- [Xen-users] Re: multiple disk images, how to?, Charles Duffy
|
|
|
|
|