Top | ![]() |
![]() |
![]() |
![]() |
GVirStorageVolHandle * | handle | Read / Write / Construct Only |
GVirStoragePool * | pool | Read / Write / Construct Only |
const gchar * gvir_storage_vol_get_path (GVirStorageVol *vol
,GError **error
);
gboolean gvir_storage_vol_delete (GVirStorageVol *vol
,guint flags
,GError **err
);
Deletes the storage volume vol
.
GVirConfigStorageVol * gvir_storage_vol_get_config (GVirStorageVol *vol
,guint flags
,GError **err
);
the config. The returned object should be
unreffed with g_object_unref()
when no longer needed.
[transfer full]
GVirStorageVolInfo * gvir_storage_vol_get_info (GVirStorageVol *vol
,GError **err
);
the info. The returned object should be
unreffed with g_object_unref()
when no longer needed.
[transfer full]
gboolean gvir_storage_vol_resize (GVirStorageVol *vol
,guint64 capacity
,guint flags
,GError **err
);
Changes the capacity of the storage volume vol
to capacity
.
gboolean gvir_storage_vol_download (GVirStorageVol *vol
,GVirStream *stream
,guint64 offset
,guint64 length
,guint flags
,GError **err
);
gboolean gvir_storage_vol_upload (GVirStorageVol *vol
,GVirStream *stream
,guint64 offset
,guint64 length
,guint flags
,GError **err
);
No flags |
||
force allocation of new size |
||
size is relative to current |
||
allow decrease in capacity. This combined with GVIR_STORAGE_VOL_RESIZE_DELTA, implies a negative delta. |
“handle”
property “handle” GVirStorageVolHandle *
The storage_vol handle.
Flags: Read / Write / Construct Only
“pool”
property“pool” GVirStoragePool *
The containing storage pool.
Flags: Read / Write / Construct Only