Re: [libvirt] [PATCH] cleanup functions which exec OpenVZ tools

2008-07-16 Thread Daniel Veillard
On Mon, Jul 14, 2008 at 04:04:01PM +0400, Evgeniy Sokolov wrote: > > >>Patch improve code which execute external OpenVZ tools. > > > >>+/* generate arguments to create OpenVZ container > >>+ return -1 - error > >>+ 0 - OK > >>+*/ > >>+static int openvzDomainDefineCmd(const char *args[

Re: [libvirt] [PATCH] cleanup functions which exec OpenVZ tools

2008-07-14 Thread Evgeniy Sokolov
Patch improve code which execute external OpenVZ tools. +/* generate arguments to create OpenVZ container + return -1 - error + 0 - OK +*/ +static int openvzDomainDefineCmd(const char *args[], int maxarg, struct openvz_vm_def *vmdef) Rather than passing in the pre-allocated arg

Re: [libvirt] [PATCH] cleanup functions which exec OpenVZ tools

2008-07-12 Thread Daniel P. Berrange
On Fri, Jul 11, 2008 at 07:55:11PM +0400, Evgeniy Sokolov wrote: > Patch improve code which execute external OpenVZ tools. > +/* generate arguments to create OpenVZ container > + return -1 - error > + 0 - OK > +*/ > +static int openvzDomainDefineCmd(const char *args[], int maxarg, stru

[libvirt] [PATCH] cleanup functions which exec OpenVZ tools

2008-07-11 Thread Evgeniy Sokolov
Patch improve code which execute external OpenVZ tools. ? src/test.xml Index: src/openvz_driver.c === RCS file: /data/cvs/libvirt/src/openvz_driver.c,v retrieving revision 1.28 diff -u -p -r1.28 openvz_driver.c --- src/openvz_driver.c