mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-29 20:11:16 +00:00
The following four functions have not changed because default arguments have to come after positional arguments. Changing them will break the the binding APIs. migrate(self, dconn, flags, dname, uri, bandwidth): migrate2(self, dconn, dxml, flags, dname, uri, bandwidth): migrateToURI(self, duri, flags, dname, bandwidth): migrateToURI2(self, dconnuri, miguri, dxml, flags, dname, bandwidth):
12 lines
438 B
Python
12 lines
438 B
Python
def listAllVolumes(self, flags=0):
|
|
"""List all storage volumes and returns a list of storage volume objects"""
|
|
ret = libvirtmod.virStoragePoolListAllVolumes(self._o, flags)
|
|
if ret is None:
|
|
raise libvirtError("virStoragePoolListAllVolumes() failed", conn=self)
|
|
|
|
retlist = list()
|
|
for volptr in ret:
|
|
retlist.append(virStorageVol(self, _obj=volptr))
|
|
|
|
return retlist
|