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

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

 



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[], int maxarg, struct 
> >>openvz_vm_def *vmdef)
> >
> >Rather than passing in the pre-allocated args array of a fixed length,
> >grab the 'ADD_ARG' and 'ADD_ARG_LIT' macros  from the qemu_conf.c
> >file in the qemudBuildCommandLine() method. They let you easily
> >dynamically grow the argv as required, without complicating the
> >code significantly.
> 
> I thought about it, but I planned to add in one of next patches.
> 
> Thanks for review!
> 
> fixed patch is attached.

  Sorry for the delay,

  way cleaner, and smaller, very good :-)

   applied and commited, thanks a lot !

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard@xxxxxxxxxx  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/

--
Libvir-list mailing list
Libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]