![]() |
![]() |
![]() |
Libvirt-gobject Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
struct GVirStoragePool; struct GVirStoragePoolClass; struct GVirStoragePoolInfo; enum GVirStoragePoolState; gboolean gvir_storage_pool_build (GVirStoragePool *pool
,guint flags
,GError **err
); void gvir_storage_pool_build_async (GVirStoragePool *pool
,guint flags
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean gvir_storage_pool_build_finish (GVirStoragePool *pool
,GAsyncResult *result
,GError **err
); GVirStorageVol * gvir_storage_pool_create_volume (GVirStoragePool *pool
,GVirConfigStorageVol *conf
,GError **err
); GVirConfigStoragePool * gvir_storage_pool_get_config (GVirStoragePool *pool
,guint flags
,GError **err
); GVirStoragePoolInfo * gvir_storage_pool_get_info (GVirStoragePool *pool
,GError **err
); const gchar * gvir_storage_pool_get_name (GVirStoragePool *pool
); const gchar * gvir_storage_pool_get_uuid (GVirStoragePool *pool
); GVirStorageVol * gvir_storage_pool_get_volume (GVirStoragePool *pool
,const gchar *name
); GList * gvir_storage_pool_get_volumes (GVirStoragePool *pool
); gboolean gvir_storage_pool_refresh (GVirStoragePool *pool
,GCancellable *cancellable
,GError **err
); void gvir_storage_pool_refresh_async (GVirStoragePool *pool
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean gvir_storage_pool_refresh_finish (GVirStoragePool *pool
,GAsyncResult *result
,GError **err
); gboolean gvir_storage_pool_start (GVirStoragePool *pool
,guint flags
,GError **err
); void gvir_storage_pool_start_async (GVirStoragePool *pool
,guint flags
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean gvir_storage_pool_start_finish (GVirStoragePool *pool
,GAsyncResult *result
,GError **err
);
struct GVirStoragePoolClass { GObjectClass parent_class; gpointer padding[20]; };
struct GVirStoragePoolInfo { GVirStoragePoolState state; /* the state */ guint64 capacity; /* Logical size bytes */ guint64 allocation; /* Current allocation bytes */ guint64 available; /* Remaining free space bytes */ };
typedef enum { GVIR_STORAGE_POOL_STATE_INACTIVE = 0, /* Not running */ GVIR_STORAGE_POOL_STATE_BUILDING = 1, /* Initializing pool, not available */ GVIR_STORAGE_POOL_STATE_RUNNING = 2, /* Running normally */ GVIR_STORAGE_POOL_STATE_DEGRADED = 3, /* Running degraded */ GVIR_STORAGE_POOL_STATE_INACCESSIBLE = 4, /* Running, but not accessible */ } GVirStoragePoolState;
gboolean gvir_storage_pool_build (GVirStoragePool *pool
,guint flags
,GError **err
);
|
the storage pool to build |
|
the flags |
|
return location for any GError |
Returns : |
True on success, False otherwise. |
void gvir_storage_pool_build_async (GVirStoragePool *pool
,guint flags
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
|
the storage pool to build |
|
the flags |
|
cancellation object. [allow-none][transfer none] |
|
completion callback. [scope async] |
|
opaque data for callback. [closure] |
gboolean gvir_storage_pool_build_finish (GVirStoragePool *pool
,GAsyncResult *result
,GError **err
);
|
the storage pool to build |
|
async method result. [transfer none] |
|
return location for any GError |
Returns : |
True on success, False otherwise. |
GVirStorageVol * gvir_storage_pool_create_volume (GVirStoragePool *pool
,GVirConfigStorageVol *conf
,GError **err
);
|
the storage pool in which to create the volume |
|
the configuration for the new volume Returns: (transfer full): the newly created volume |
GVirConfigStoragePool * gvir_storage_pool_get_config (GVirStoragePool *pool
,guint flags
,GError **err
);
|
the storage_pool |
|
the flags Returns: (transfer full): the config |
GVirStoragePoolInfo * gvir_storage_pool_get_info (GVirStoragePool *pool
,GError **err
);
|
the storage_pool Returns: (transfer full): the info |
GVirStorageVol * gvir_storage_pool_get_volume (GVirStoragePool *pool
,const gchar *name
);
|
the storage pool |
|
Name of the requested storage volume |
Returns : |
the GVirStorageVol, or NULL. [transfer full] |
GList * gvir_storage_pool_get_volumes (GVirStoragePool *pool
);
|
the storage pool |
Returns : |
List of GVirStorageVol. [element-type LibvirtGObject.StorageVol][transfer full] |
gboolean gvir_storage_pool_refresh (GVirStoragePool *pool
,GCancellable *cancellable
,GError **err
);
|
the storage pool |
|
cancellation object. [allow-none][transfer none] |
void gvir_storage_pool_refresh_async (GVirStoragePool *pool
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
|
the storage pool |
|
cancellation object. [allow-none][transfer none] |
|
completion callback. [scope async] |
|
opaque data for callback. [closure] |
gboolean gvir_storage_pool_refresh_finish (GVirStoragePool *pool
,GAsyncResult *result
,GError **err
);
|
the storage pool |
|
async method result. [transfer none] |
gboolean gvir_storage_pool_start (GVirStoragePool *pool
,guint flags
,GError **err
);
|
the storage pool to start |
|
the flags |
|
return location for any GError |
Returns : |
True on success, False otherwise. |
void gvir_storage_pool_start_async (GVirStoragePool *pool
,guint flags
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
|
the storage pool to start |
|
the flags |
|
cancellation object. [allow-none][transfer none] |
|
completion callback. [scope async] |
|
opaque data for callback. [closure] |
gboolean gvir_storage_pool_start_finish (GVirStoragePool *pool
,GAsyncResult *result
,GError **err
);
|
the storage pool to start |
|
async method result. [transfer none] |
|
return location for any GError |
Returns : |
True on success, False otherwise. |