[rust PATCH 0/3] Implement virStoragePoolListVolumes and virStoragePoolListAllVolumes

mathias at pius.io mathias at pius.io
Mon Feb 10 13:38:02 UTC 2020


From: Mathias Pius <mathias at pius.io>

This patch implements virStoragePoolListAllVolumes and virStoragePoolListVolumes for the StoragePool object. I'm not too familiar with the libvirt codebase, so I've used similar functions from connect.rs and domain.rs for so the implementations should (hopefully) be as correct as those. I've taken the liberty of using Vec::with_capacity when allocating vectors to store the result of these operations in, to prevent reallocations while converting the object types from the internal type to StorageVol and Strings.

Feedback is very welcome!

Mathias Pius (3):
  Implement virStoragePoolListAllVolumes and virStoragePoolListVolumes
    for StoragePool
  cargo fmt
  Newline at end of file

 src/storage_pool.rs   | 55 ++++++++++++++++++++++++++++++++++++++++++-
 tests/storage_pool.rs | 34 ++++++++++++++++++++++++++
 2 files changed, 88 insertions(+), 1 deletion(-)

-- 
2.25.0

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 839 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200210/e1965d6e/attachment-0001.sig>


More information about the libvir-list mailing list