module Pool:sig
..end
type 'rw
t
type
pool_state =
| |
Inactive |
|||
| |
Building |
|||
| |
Running |
|||
| |
Degraded |
(* |
State of the storage pool.
| *) |
type
pool_build_flags =
| |
New |
|||
| |
Repair |
|||
| |
Resize |
(* |
Flags for creating a storage pool.
| *) |
type
pool_delete_flags =
| |
Normal |
|||
| |
Zeroed |
(* |
Flags for deleting a storage pool.
| *) |
type
pool_info = {
|
state : |
(* |
Pool state.
| *) |
|
capacity : |
(* |
Logical size in bytes.
| *) |
|
allocation : |
(* |
Currently allocated in bytes.
| *) |
|
available : |
(* |
Remaining free space bytes.
| *) |
val lookup_by_name : 'a Libvirt.Connect.t -> string -> 'a t
val lookup_by_uuid : 'a Libvirt.Connect.t -> Libvirt.uuid -> 'a t
val lookup_by_uuid_string : 'a Libvirt.Connect.t -> string -> 'a t
val create_xml : [> `W ] Libvirt.Connect.t -> Libvirt.xml -> Libvirt.rw t
val define_xml : [> `W ] Libvirt.Connect.t -> Libvirt.xml -> Libvirt.rw t
val build : [> `W ] t -> pool_build_flags -> unit
val undefine : [> `W ] t -> unit
val create : [> `W ] t -> unit
val destroy : [> `W ] t -> unit
val delete : [> `W ] t -> unit
val free : [> `R ] t -> unit
The storage pool object is automatically freed if it is garbage
collected. This function just forces it to be freed right
away.
val refresh : [ `R ] t -> unit
val get_name : [ `R ] t -> string
val get_uuid : [ `R ] t -> Libvirt.uuid
val get_uuid_string : [ `R ] t -> string
val get_info : [ `R ] t -> pool_info
val get_xml_desc : [ `R ] t -> Libvirt.xml
val get_autostart : [ `R ] t -> bool
val set_autostart : [> `W ] t -> bool -> unit
val num_of_volumes : [ `R ] t -> int
val list_volumes : [ `R ] t -> int -> string array
val const : [> `R ] t -> Libvirt.ro t
const conn
turns a read/write storage pool into a read-only
pool. Note that the opposite operation is impossible.