[libvirt] [PATCH v2 0/5] delete volumes while it is building

2011-07-17 Thread Guannan Ren
This is the version 2 of patches for deleting volume while it is being built. based on the first version: https://www.redhat.com/archives/libvir-list/2011-July/msg00535.html. The patches is an attempt to spawn a new thread for volume building in storageVolumeCreateXML(), then, the initial

[libvirt] [PATCH v2 1/5] make libvirt_driver_storage use pthread function

2011-07-17 Thread Guannan Ren
--- src/Makefile.am |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 54b1ca0..90c4393 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -878,7 +878,7 @@ libvirt_driver_storage_la_SOURCES = libvirt_driver_storage_la_CFLAGS = \

[libvirt] [PATCH v2 2/5] add condition variable and job signals support to _virStoragePoolObj

2011-07-17 Thread Guannan Ren
--- src/conf/storage_conf.c | 10 ++ src/conf/storage_conf.h |2 ++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/conf/storage_conf.c b/src/conf/storage_conf.c index cc55b80..093b760 100644 --- a/src/conf/storage_conf.c +++ b/src/conf/storage_conf.c @@ -323,6

[libvirt] [PATCH v2 4/5] In storageVolumeCreateXML, spawn a new thread for volbuilding, in storageVolumeDelete, generate the signal

2011-07-17 Thread Guannan Ren
--- src/storage/storage_backend.c |9 src/storage/storage_driver.c | 83 - 2 files changed, 82 insertions(+), 10 deletions(-) diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index f632edd..bc10933 100644 ---

[libvirt] [PATCH v2 5/5] add pthread_cancel() support

2011-07-17 Thread Guannan Ren
--- src/util/threads-pthread.c |9 + src/util/threads.h |2 ++ 2 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/util/threads-pthread.c b/src/util/threads-pthread.c index 82ce5c6..791c5a5 100644 --- a/src/util/threads-pthread.c +++

[libvirt] [PATCH v2 3/5] New struct for spawning a vol building thread

2011-07-17 Thread Guannan Ren
--- src/storage/storage_backend.h | 17 - 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/src/storage/storage_backend.h b/src/storage/storage_backend.h index 67ac32c..d713b6d 100644 --- a/src/storage/storage_backend.h +++ b/src/storage/storage_backend.h @@ -62,6

Re: [libvirt] [PATCH 1/3] add virCond into _virStoragePoolObj

2011-07-17 Thread Guannan Ren
On 07/11/2011 11:40 PM, Dave Allan wrote: On Mon, Jul 11, 2011 at 06:11:47PM +0800, Guannan Ren wrote: On 07/11/2011 04:49 PM, Jiri Denemark wrote: On Sun, Jul 10, 2011 at 22:29:03 +0800, Guannan Ren wrote: The three patches add support to delete volumes while it is building intead of

[libvirt] [PATCH] virsh: avoid double free of domain

2011-07-17 Thread ajia
From: Alex Jia a...@redhat.com * tools/virsh.c: avoid double free of domain, when weight value of blkiotune less than 0, codes will free domain and jump to cleanup section, however, cleanup will free domain again. Detected in valgrind run: ==21297== ERROR SUMMARY: 20 errors from 20 contexts

Re: [libvirt] [PATCH] network: avoid memory leak on cleanup

2011-07-17 Thread Alex Jia
Hi Daniel, # rpm -q libvirt libvirt-0.9.3-3.el6.x86_64 Regards, Alex - Original Message - From: Daniel P. Berrange berra...@redhat.com To: Alex Jia a...@redhat.com Cc: Matthias Bolte matthias.bo...@googlemail.com, libvir-list@redhat.com Sent: Friday, July 15, 2011 6:12:17 PM Subject:

Re: [libvirt] [PATCH 07/10] network: new XML to support virtual switch functionality

2011-07-17 Thread Laine Stump
On 07/14/2011 10:26 AM, Eric Blake wrote: On 07/14/2011 08:14 AM, Daniel P. Berrange wrote: On Thu, Jul 14, 2011 at 08:11:20AM -0600, Eric Blake wrote: On 07/14/2011 08:08 AM, Daniel P. Berrange wrote: That would be a valid concern if we passed internal flags over the wire, but we don't. I'm

Re: [libvirt] [PATCH] virsh: avoid double free of domain

2011-07-17 Thread Wen Congyang
At 07/17/2011 11:29 PM, a...@redhat.com Write: From: Alex Jia a...@redhat.com * tools/virsh.c: avoid double free of domain, when weight value of blkiotune less than 0, codes will free domain and jump to cleanup section, however, cleanup will free domain again. Detected in valgrind

Re: [libvirt] [PATCH] network: avoid memory leak on cleanup

2011-07-17 Thread Alex Jia
On 07/18/2011 12:35 AM, Alex Jia wrote: Hi Daniel, # rpm -q libvirt libvirt-0.9.3-3.el6.x86_64 Regards, Alex - Original Message - From: Daniel P. Berrangeberra...@redhat.com To: Alex Jiaa...@redhat.com Cc: Matthias Boltematthias.bo...@googlemail.com, libvir-list@redhat.com Sent: