[PATCH 1/3] add virCond into _virStoragePoolObj

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

 



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

--
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]