GVirStoragePool

GVirStoragePool

Synopsis

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);

Object Hierarchy

  GObject
   +----GVirStoragePool
  GBoxed
   +----GVirStoragePoolInfo

Properties

  "handle"                   GVirStoragePoolHandle*  : Read / Write / Construct Only

Description

Details

struct GVirStoragePool

struct GVirStoragePool;

struct GVirStoragePoolClass

struct GVirStoragePoolClass {
    GObjectClass parent_class;

    gpointer padding[20];
};

struct GVirStoragePoolInfo

struct GVirStoragePoolInfo {
    GVirStoragePoolState state; /* the state */
    guint64 capacity;           /* Logical size bytes */
    guint64 allocation;         /* Current allocation bytes */
    guint64 available;          /* Remaining free space bytes */
};

enum GVirStoragePoolState

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;

gvir_storage_pool_build ()

gboolean            gvir_storage_pool_build             (GVirStoragePool *pool,
                                                         guint flags,
                                                         GError **err);

pool :

the storage pool to build

flags :

the flags

err :

return location for any GError

Returns :

True on success, False otherwise.

gvir_storage_pool_build_async ()

void                gvir_storage_pool_build_async       (GVirStoragePool *pool,
                                                         guint flags,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);

pool :

the storage pool to build

flags :

the flags

cancellable :

cancellation object. [allow-none][transfer none]

callback :

completion callback. [scope async]

user_data :

opaque data for callback. [closure]

gvir_storage_pool_build_finish ()

gboolean            gvir_storage_pool_build_finish      (GVirStoragePool *pool,
                                                         GAsyncResult *result,
                                                         GError **err);

pool :

the storage pool to build

result :

async method result. [transfer none]

err :

return location for any GError

Returns :

True on success, False otherwise.

gvir_storage_pool_create_volume ()

GVirStorageVol *    gvir_storage_pool_create_volume     (GVirStoragePool *pool,
                                                         GVirConfigStorageVol *conf,
                                                         GError **err);

pool :

the storage pool in which to create the volume

conf :

the configuration for the new volume Returns: (transfer full): the newly created volume

gvir_storage_pool_get_config ()

GVirConfigStoragePool * gvir_storage_pool_get_config    (GVirStoragePool *pool,
                                                         guint flags,
                                                         GError **err);

pool :

the storage_pool

flags :

the flags Returns: (transfer full): the config

gvir_storage_pool_get_info ()

GVirStoragePoolInfo * gvir_storage_pool_get_info        (GVirStoragePool *pool,
                                                         GError **err);

pool :

the storage_pool Returns: (transfer full): the info

gvir_storage_pool_get_name ()

const gchar *       gvir_storage_pool_get_name          (GVirStoragePool *pool);

gvir_storage_pool_get_uuid ()

const gchar *       gvir_storage_pool_get_uuid          (GVirStoragePool *pool);

gvir_storage_pool_get_volume ()

GVirStorageVol *    gvir_storage_pool_get_volume        (GVirStoragePool *pool,
                                                         const gchar *name);

pool :

the storage pool

name :

Name of the requested storage volume

Returns :

the GVirStorageVol, or NULL. [transfer full]

gvir_storage_pool_get_volumes ()

GList *             gvir_storage_pool_get_volumes       (GVirStoragePool *pool);

pool :

the storage pool

Returns :

List of GVirStorageVol. [element-type LibvirtGObject.StorageVol][transfer full]

gvir_storage_pool_refresh ()

gboolean            gvir_storage_pool_refresh           (GVirStoragePool *pool,
                                                         GCancellable *cancellable,
                                                         GError **err);

pool :

the storage pool

cancellable :

cancellation object. [allow-none][transfer none]

gvir_storage_pool_refresh_async ()

void                gvir_storage_pool_refresh_async     (GVirStoragePool *pool,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);

pool :

the storage pool

cancellable :

cancellation object. [allow-none][transfer none]

callback :

completion callback. [scope async]

user_data :

opaque data for callback. [closure]

gvir_storage_pool_refresh_finish ()

gboolean            gvir_storage_pool_refresh_finish    (GVirStoragePool *pool,
                                                         GAsyncResult *result,
                                                         GError **err);

pool :

the storage pool

result :

async method result. [transfer none]

gvir_storage_pool_start ()

gboolean            gvir_storage_pool_start             (GVirStoragePool *pool,
                                                         guint flags,
                                                         GError **err);

pool :

the storage pool to start

flags :

the flags

err :

return location for any GError

Returns :

True on success, False otherwise.

gvir_storage_pool_start_async ()

void                gvir_storage_pool_start_async       (GVirStoragePool *pool,
                                                         guint flags,
                                                         GCancellable *cancellable,
                                                         GAsyncReadyCallback callback,
                                                         gpointer user_data);

pool :

the storage pool to start

flags :

the flags

cancellable :

cancellation object. [allow-none][transfer none]

callback :

completion callback. [scope async]

user_data :

opaque data for callback. [closure]

gvir_storage_pool_start_finish ()

gboolean            gvir_storage_pool_start_finish      (GVirStoragePool *pool,
                                                         GAsyncResult *result,
                                                         GError **err);

pool :

the storage pool to start

result :

async method result. [transfer none]

err :

return location for any GError

Returns :

True on success, False otherwise.

Property Details

The "handle" property

  "handle"                   GVirStoragePoolHandle*  : Read / Write / Construct Only

The storage_pool handle.