[libvirt] [PATCH v2 15/19] storage: Introduce APIs to search/scan storage pool volumes list
Pavel Hrdina
phrdina at redhat.com
Fri Jul 14 15:29:11 UTC 2017
On Fri, May 19, 2017 at 08:38:16AM -0400, John Ferlan wrote:
> Introduce virStoragePoolObjForEachVolume to scan each volume calling the
> passed callback function until all volumes have been processed in the
> storage pool volume list, unless the callback function returns an error.
>
> Introduce virStoragePoolObjSearchVolume to search each volume calling the
> passed callback function until it returns true indicating that the desired
> volume was found.
>
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
> src/conf/virstorageobj.c | 32 ++++++++++++++
> src/conf/virstorageobj.h | 18 ++++++++
> src/libvirt_private.syms | 2 +
> src/storage/storage_backend_disk.c | 90 +++++++++++++++++++++++---------------
> 4 files changed, 107 insertions(+), 35 deletions(-)
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170714/6bd90d0d/attachment-0001.sig>
More information about the libvir-list
mailing list