File: libvirt-override-virStoragePool.py

package info (click to toggle)
libvirt-python 11.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,428 kB
  • sloc: ansic: 10,787; python: 4,608; xml: 910; makefile: 19
file content (7 lines) | stat: -rw-r--r-- 396 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
    def listAllVolumes(self, flags: int = 0) -> List['virStorageVol']:
        """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")

        return [virStorageVol(self._conn, _obj=volptr) for volptr in ret]