1 (* libguestfs generated file
2 * WARNING: THIS FILE IS GENERATED BY 'src/generator.ml'.
3 * ANY CHANGES YOU MAKE TO THIS FILE WILL BE LOST.
5 * Copyright (C) 2009 Red Hat Inc.
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 (** For API documentation you should refer to the C API
23 in the guestfs(3) manual page. The OCaml API uses almost
24 exactly the same calls. *)
27 (** A [guestfs_h] handle. *)
29 exception Error of string
30 (** This exception is raised when there is an error. *)
32 val create : unit -> t
35 (** Handles are closed by the garbage collector when they become
36 unreferenced, but callers can also call this in order to
37 provide predictable cleanup. *)
49 pv_pe_alloc_count : int64;
64 vg_extent_size : int64;
65 vg_extent_count : int64;
66 vg_free_count : int64;
84 lv_kernel_major : int64;
85 lv_kernel_minor : int64;
89 snap_percent : float option;
90 copy_percent : float option;
97 val launch : t -> unit
98 (** launch the qemu subprocess *)
100 val wait_ready : t -> unit
101 (** wait until the qemu subprocess launches *)
103 val kill_subprocess : t -> unit
104 (** kill the qemu subprocess *)
106 val add_drive : t -> string -> unit
107 (** add an image to examine or modify *)
109 val add_cdrom : t -> string -> unit
110 (** add a CD-ROM disk image to examine *)
112 val config : t -> string -> string option -> unit
113 (** add qemu parameters *)
115 val set_path : t -> string -> unit
116 (** set the search path *)
118 val get_path : t -> string
119 (** get the search path *)
121 val set_autosync : t -> bool -> unit
122 (** set autosync mode *)
124 val get_autosync : t -> bool
125 (** get autosync mode *)
127 val set_verbose : t -> bool -> unit
128 (** set verbose mode *)
130 val get_verbose : t -> bool
131 (** get verbose mode *)
133 val mount : t -> string -> string -> unit
134 (** mount a guest disk at a position in the filesystem *)
137 (** sync disks, writes are flushed through to the disk image *)
139 val touch : t -> string -> unit
140 (** update file timestamps or create a new file *)
142 val cat : t -> string -> string
143 (** list the contents of a file *)
145 val ll : t -> string -> string
146 (** list the files in a directory (long format) *)
148 val ls : t -> string -> string array
149 (** list the files in a directory *)
151 val list_devices : t -> string array
152 (** list the block devices *)
154 val list_partitions : t -> string array
155 (** list the partitions *)
157 val pvs : t -> string array
158 (** list the LVM physical volumes (PVs) *)
160 val vgs : t -> string array
161 (** list the LVM volume groups (VGs) *)
163 val lvs : t -> string array
164 (** list the LVM logical volumes (LVs) *)
166 val pvs_full : t -> lvm_pv array
167 (** list the LVM physical volumes (PVs) *)
169 val vgs_full : t -> lvm_vg array
170 (** list the LVM volume groups (VGs) *)
172 val lvs_full : t -> lvm_lv array
173 (** list the LVM logical volumes (LVs) *)