[libvirt] [libvirt-python PATCH 0/2] Python bindings for IOThreads

John Ferlan jferlan at redhat.com
Thu Feb 19 12:59:37 UTC 2015


Going along with the recent libvirt IOThreads API additions, here's the
Python patches... These would only be submitted once the libvirt code
goes in... See the following for the libvirt patches:

http://www.redhat.com/archives/libvir-list/2015-February/msg00593.html

Reviewer's NOTE:
  - Alternatively to the error from patch 1, I could modify the code to
    not fail on <= 0, but rather just < 0 with the result being the following
    for a domain without IOThreads configured:

$ python iothr.py
[]

$

Instead of:

Traceback (most recent call last):
  File "iothr.py", line 6, in <module>
    print dom2.getIOThreadsInfo()
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1197, in getIOThreadsInfo
    if ret is None: raise libvirtError ('virDomainGetIOThreadsInfo() failed', dom=self)
libvirt.libvirtError: virDomainGetIOThreadsInfo() failed


John Ferlan (2):
  Support virDomainGetIOThreadsInfo and virDomainIOThreadsInfoFree
  Support virDomainSetIOThreads

 generator.py             |   6 ++
 libvirt-override-api.xml |  14 ++++
 libvirt-override.c       | 163 +++++++++++++++++++++++++++++++++++++++++++++++
 sanitytest.py            |   3 +
 4 files changed, 186 insertions(+)

-- 
2.1.0




More information about the libvir-list mailing list