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 tval create_xml : [> `W ] Libvirt.Connect.t -> Libvirt.xml -> Libvirt.rw tval define_xml : [> `W ] Libvirt.Connect.t -> Libvirt.xml -> Libvirt.rw tval build : [> `W ] t -> pool_build_flags -> unitval undefine : [> `W ] t -> unitval create : [> `W ] t -> unitval destroy : [> `W ] t -> unitval delete : [> `W ] t -> unitval 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 -> unitval get_name : [ `R ] t -> stringval get_uuid : [ `R ] t -> Libvirt.uuidval get_uuid_string : [ `R ] t -> stringval get_info : [ `R ] t -> pool_infoval get_xml_desc : [ `R ] t -> Libvirt.xmlval get_autostart : [ `R ] t -> boolval set_autostart : [> `W ] t -> bool -> unitval num_of_volumes : [ `R ] t -> intval list_volumes : [ `R ] t -> int -> string arrayval const : [> `R ] t -> Libvirt.ro tconst conn turns a read/write storage pool into a read-only
pool. Note that the opposite operation is impossible.