[Libvir] [PATCH] Fix endless loop of VirBufferVSprintf()

2007-08-24 Thread Masayuki Sunou
Hi VirBufferVSprintf() loops endless when it receives over 2000 bytes, because the return value of vsnprintf() is more than size - 1. It is because the maximum of size is 1999 bytes. -- the maximum of buf-size - buf-use = 2000 (1000(argument of virBufferGrow()) + 1000(set in

Re: [Libvir] Segfault with invalid virConnectPtr

2007-08-24 Thread Daniel Veillard
On Fri, Aug 24, 2007 at 10:41:55AM +0100, Richard W.M. Jones wrote: Program terminated with signal 11, Segmentation fault. #0 0x003d8b472a1b in free () from /lib64/libc.so.6 (gdb) bt #0 0x003d8b472a1b in free () from /lib64/libc.so.6 #1 0x2aae8dd7 in virResetError

[Libvir] Segfault with invalid virConnectPtr

2007-08-24 Thread Richard W.M. Jones
Program terminated with signal 11, Segmentation fault. #0 0x003d8b472a1b in free () from /lib64/libc.so.6 (gdb) bt #0 0x003d8b472a1b in free () from /lib64/libc.so.6 #1 0x2aae8dd7 in virResetError (err=0x33535c8) at virterror.c:111 #2 0x2aae8fce in __virRaiseError

Re: [Libvir] OpenVZ driver enhancements

2007-08-24 Thread Daniel Veillard
On Thu, Aug 23, 2007 at 02:33:42PM +0530, Shuveb Hussain wrote: Hi, I'm glad to make available patches for the OpenVZ driver that provide the following features: Okay looking at those: -if (!memcmp(vm-vmdef-uuid, uuid, VIR_UUID_BUFLEN)) +if (!memcmp(vm-vmdef-uuid, uuid,

Re: [Libvir] feature sujestions

2007-08-24 Thread Daniel Veillard
On Fri, Aug 24, 2007 at 02:41:57PM -0400, Michael DeHaan wrote: Daniel Veillard wrote: On Thu, Aug 23, 2007 at 12:41:22PM -0400, Michael DeHaan wrote: Richard W.M. Jones wrote: Some distributed stuff to complement the remote features above: Cobbler (http://cobbler.et.redhat.com)