[libvirt] [libvirt-glib 1/4] gobject: don't try to use pool's volumes before a successful refresh

Christophe Fergeau cfergeau at redhat.com
Tue Nov 13 17:26:56 UTC 2012


Ping for these 4 patches?

On Tue, Nov 06, 2012 at 01:45:12PM +0100, Christophe Fergeau wrote:
> gvir_storage_pool_refresh must be called and must be successful before
> trying to use gvir_storage_pool_get_volume,
> gvir_storage_pool_get_volumes and gvir_storage_pool_create_volume.
> As the storage pool refresh can fail for reasons external to
> libvirt/libvirt-gobject, the library user should check _refresh
> errors. This commit outputs runtime warnings when these functions
> are called and GVirObjectStoragePool::priv::volumes is NULL.
> ---
>  libvirt-gobject/libvirt-gobject-storage-pool.c | 22 ++++++++++++++++++----
>  1 file changed, 18 insertions(+), 4 deletions(-)
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20121113/6e088488/attachment-0001.sig>


More information about the libvir-list mailing list