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

Guannan Ren gren at redhat.com
Sun Jul 10 14:29:03 UTC 2011

The three patches add support to delete volumes while it is building intead of raising
an warning infomation,then abort.
For the volume of raw file, delete it directly without any effect on the thread of creating
For the volume of block, wait for its finish , then delete it.

 src/conf/storage_conf.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/conf/storage_conf.h b/src/conf/storage_conf.h
index 271441a..25455df 100644
--- a/src/conf/storage_conf.h
+++ b/src/conf/storage_conf.h
@@ -275,6 +275,7 @@ typedef virStoragePoolObj *virStoragePoolObjPtr;
 struct _virStoragePoolObj {
     virMutex lock;
+    virCond cond;
     char *configFile;
     char *autostartLink;

More information about the libvir-list mailing list