[libvirt] [libvirt-python PATCH v2] override: add virDomainFSFreeze and virDomainFSThaw API

tomoki.sekiyama at hds.com tomoki.sekiyama at hds.com
Wed May 14 03:41:21 UTC 2014


From: Tomoki Sekiyama <tomoki.sekiyama at hds.com>

Hello Michael, 

Thank you for posting v2.
May be we should add following diff to avoid sanitytest.pl's
mapping error.

---
diff --git a/sanitytest.py b/sanitytest.py
index cff30d5..62fe42b 100644
--- a/sanitytest.py
+++ b/sanitytest.py
@@ -207,6 +207,8 @@ for name in sorted(basicklassmap):
     func = func[0:1].lower() + func[1:]
     if func[0:8] == "nWFilter":
         func = "nwfilter" + func[8:]
+    if func[0:8] == "fSFreeze" or func[0:6] == "fSThaw":
+        func = "fs" + func[2:]
 
     # ...except when they don't. More stupid naming
     # decisions we can't fix
-- 

> From: Tomoki Sekiyama <tomoki.sekiy... at hds.com>
>
> Add binding for the new virDomainFSFreeze and virDomainFSThaw functions
> added in libvirt 1.2.5. These require override since these take a list
> of mountpoints path string. The methods are named 'fsFreeze' and
> 'fsThaw'.
>

Regards,
Tomoki Sekiyama




More information about the libvir-list mailing list