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

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



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
it.
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;
-- 
1.7.1


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