| 1 | def listAllVolumes(self, flags: Optional[int] = 0) -> list['virStorageVol']: |
| 2 | """List all storage volumes and returns a list of storage volume objects""" |
| 3 | ret = libvirtmod.virStoragePoolListAllVolumes(self._o, flags) |
| 4 | if ret is None: |
| 5 | raise libvirtError("virStoragePoolListAllVolumes() failed") |
| 6 | |
| 7 | return [virStorageVol(self._conn, _obj=volptr) for volptr in ret] |