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
23 exception Error of string
24 external create : unit -> t = "ocaml_guestfs_create"
25 external close : t -> unit = "ocaml_guestfs_close"
28 Callback.register_exception "ocaml_guestfs_error" (Error "")
40 pv_pe_alloc_count : int64;
55 vg_extent_size : int64;
56 vg_extent_count : int64;
57 vg_free_count : int64;
75 lv_kernel_major : int64;
76 lv_kernel_minor : int64;
80 snap_percent : float option;
81 copy_percent : float option;
118 external launch : t -> unit = "ocaml_guestfs_launch"
119 external wait_ready : t -> unit = "ocaml_guestfs_wait_ready"
120 external kill_subprocess : t -> unit = "ocaml_guestfs_kill_subprocess"
121 external add_drive : t -> string -> unit = "ocaml_guestfs_add_drive"
122 external add_cdrom : t -> string -> unit = "ocaml_guestfs_add_cdrom"
123 external config : t -> string -> string option -> unit = "ocaml_guestfs_config"
124 external set_qemu : t -> string -> unit = "ocaml_guestfs_set_qemu"
125 external get_qemu : t -> string = "ocaml_guestfs_get_qemu"
126 external set_path : t -> string -> unit = "ocaml_guestfs_set_path"
127 external get_path : t -> string = "ocaml_guestfs_get_path"
128 external set_autosync : t -> bool -> unit = "ocaml_guestfs_set_autosync"
129 external get_autosync : t -> bool = "ocaml_guestfs_get_autosync"
130 external set_verbose : t -> bool -> unit = "ocaml_guestfs_set_verbose"
131 external get_verbose : t -> bool = "ocaml_guestfs_get_verbose"
132 external is_ready : t -> bool = "ocaml_guestfs_is_ready"
133 external is_config : t -> bool = "ocaml_guestfs_is_config"
134 external is_launching : t -> bool = "ocaml_guestfs_is_launching"
135 external is_busy : t -> bool = "ocaml_guestfs_is_busy"
136 external get_state : t -> int = "ocaml_guestfs_get_state"
137 external set_busy : t -> unit = "ocaml_guestfs_set_busy"
138 external set_ready : t -> unit = "ocaml_guestfs_set_ready"
139 external end_busy : t -> unit = "ocaml_guestfs_end_busy"
140 external mount : t -> string -> string -> unit = "ocaml_guestfs_mount"
141 external sync : t -> unit = "ocaml_guestfs_sync"
142 external touch : t -> string -> unit = "ocaml_guestfs_touch"
143 external cat : t -> string -> string = "ocaml_guestfs_cat"
144 external ll : t -> string -> string = "ocaml_guestfs_ll"
145 external ls : t -> string -> string array = "ocaml_guestfs_ls"
146 external list_devices : t -> string array = "ocaml_guestfs_list_devices"
147 external list_partitions : t -> string array = "ocaml_guestfs_list_partitions"
148 external pvs : t -> string array = "ocaml_guestfs_pvs"
149 external vgs : t -> string array = "ocaml_guestfs_vgs"
150 external lvs : t -> string array = "ocaml_guestfs_lvs"
151 external pvs_full : t -> lvm_pv array = "ocaml_guestfs_pvs_full"
152 external vgs_full : t -> lvm_vg array = "ocaml_guestfs_vgs_full"
153 external lvs_full : t -> lvm_lv array = "ocaml_guestfs_lvs_full"
154 external read_lines : t -> string -> string array = "ocaml_guestfs_read_lines"
155 external aug_init : t -> string -> int -> unit = "ocaml_guestfs_aug_init"
156 external aug_close : t -> unit = "ocaml_guestfs_aug_close"
157 external aug_defvar : t -> string -> string option -> int = "ocaml_guestfs_aug_defvar"
158 external aug_defnode : t -> string -> string -> string -> int * bool = "ocaml_guestfs_aug_defnode"
159 external aug_get : t -> string -> string = "ocaml_guestfs_aug_get"
160 external aug_set : t -> string -> string -> unit = "ocaml_guestfs_aug_set"
161 external aug_insert : t -> string -> string -> bool -> unit = "ocaml_guestfs_aug_insert"
162 external aug_rm : t -> string -> int = "ocaml_guestfs_aug_rm"
163 external aug_mv : t -> string -> string -> unit = "ocaml_guestfs_aug_mv"
164 external aug_match : t -> string -> string array = "ocaml_guestfs_aug_match"
165 external aug_save : t -> unit = "ocaml_guestfs_aug_save"
166 external aug_load : t -> unit = "ocaml_guestfs_aug_load"
167 external aug_ls : t -> string -> string array = "ocaml_guestfs_aug_ls"
168 external rm : t -> string -> unit = "ocaml_guestfs_rm"
169 external rmdir : t -> string -> unit = "ocaml_guestfs_rmdir"
170 external rm_rf : t -> string -> unit = "ocaml_guestfs_rm_rf"
171 external mkdir : t -> string -> unit = "ocaml_guestfs_mkdir"
172 external mkdir_p : t -> string -> unit = "ocaml_guestfs_mkdir_p"
173 external chmod : t -> int -> string -> unit = "ocaml_guestfs_chmod"
174 external chown : t -> int -> int -> string -> unit = "ocaml_guestfs_chown"
175 external exists : t -> string -> bool = "ocaml_guestfs_exists"
176 external is_file : t -> string -> bool = "ocaml_guestfs_is_file"
177 external is_dir : t -> string -> bool = "ocaml_guestfs_is_dir"
178 external pvcreate : t -> string -> unit = "ocaml_guestfs_pvcreate"
179 external vgcreate : t -> string -> string array -> unit = "ocaml_guestfs_vgcreate"
180 external lvcreate : t -> string -> string -> int -> unit = "ocaml_guestfs_lvcreate"
181 external mkfs : t -> string -> string -> unit = "ocaml_guestfs_mkfs"
182 external sfdisk : t -> string -> int -> int -> int -> string array -> unit = "ocaml_guestfs_sfdisk_byte" "ocaml_guestfs_sfdisk"
183 external write_file : t -> string -> string -> int -> unit = "ocaml_guestfs_write_file"
184 external umount : t -> string -> unit = "ocaml_guestfs_umount"
185 external mounts : t -> string array = "ocaml_guestfs_mounts"
186 external umount_all : t -> unit = "ocaml_guestfs_umount_all"
187 external lvm_remove_all : t -> unit = "ocaml_guestfs_lvm_remove_all"
188 external file : t -> string -> string = "ocaml_guestfs_file"
189 external command : t -> string array -> string = "ocaml_guestfs_command"
190 external command_lines : t -> string array -> string array = "ocaml_guestfs_command_lines"
191 external stat : t -> string -> stat = "ocaml_guestfs_stat"
192 external lstat : t -> string -> stat = "ocaml_guestfs_lstat"
193 external statvfs : t -> string -> statvfs = "ocaml_guestfs_statvfs"
194 external tune2fs_l : t -> string -> (string * string) list = "ocaml_guestfs_tune2fs_l"
195 external blockdev_setro : t -> string -> unit = "ocaml_guestfs_blockdev_setro"
196 external blockdev_setrw : t -> string -> unit = "ocaml_guestfs_blockdev_setrw"
197 external blockdev_getro : t -> string -> bool = "ocaml_guestfs_blockdev_getro"
198 external blockdev_getss : t -> string -> int = "ocaml_guestfs_blockdev_getss"
199 external blockdev_getbsz : t -> string -> int = "ocaml_guestfs_blockdev_getbsz"
200 external blockdev_setbsz : t -> string -> int -> unit = "ocaml_guestfs_blockdev_setbsz"
201 external blockdev_getsz : t -> string -> int64 = "ocaml_guestfs_blockdev_getsz"
202 external blockdev_getsize64 : t -> string -> int64 = "ocaml_guestfs_blockdev_getsize64"
203 external blockdev_flushbufs : t -> string -> unit = "ocaml_guestfs_blockdev_flushbufs"
204 external blockdev_rereadpt : t -> string -> unit = "ocaml_guestfs_blockdev_rereadpt"
205 external upload : t -> string -> string -> unit = "ocaml_guestfs_upload"
206 external download : t -> string -> string -> unit = "ocaml_guestfs_download"
207 external checksum : t -> string -> string -> string = "ocaml_guestfs_checksum"
208 external tar_in : t -> string -> string -> unit = "ocaml_guestfs_tar_in"
209 external tar_out : t -> string -> string -> unit = "ocaml_guestfs_tar_out"
210 external tgz_in : t -> string -> string -> unit = "ocaml_guestfs_tgz_in"
211 external tgz_out : t -> string -> string -> unit = "ocaml_guestfs_tgz_out"
212 external mount_ro : t -> string -> string -> unit = "ocaml_guestfs_mount_ro"
213 external mount_options : t -> string -> string -> string -> unit = "ocaml_guestfs_mount_options"
214 external mount_vfs : t -> string -> string -> string -> string -> unit = "ocaml_guestfs_mount_vfs"
215 external debug : t -> string -> string array -> string = "ocaml_guestfs_debug"
216 external lvremove : t -> string -> unit = "ocaml_guestfs_lvremove"
217 external vgremove : t -> string -> unit = "ocaml_guestfs_vgremove"
218 external pvremove : t -> string -> unit = "ocaml_guestfs_pvremove"
219 external set_e2label : t -> string -> string -> unit = "ocaml_guestfs_set_e2label"
220 external get_e2label : t -> string -> string = "ocaml_guestfs_get_e2label"
221 external set_e2uuid : t -> string -> string -> unit = "ocaml_guestfs_set_e2uuid"
222 external get_e2uuid : t -> string -> string = "ocaml_guestfs_get_e2uuid"
223 external fsck : t -> string -> string -> int = "ocaml_guestfs_fsck"
224 external zero : t -> string -> unit = "ocaml_guestfs_zero"
225 external grub_install : t -> string -> string -> unit = "ocaml_guestfs_grub_install"
226 external cp : t -> string -> string -> unit = "ocaml_guestfs_cp"
227 external cp_a : t -> string -> string -> unit = "ocaml_guestfs_cp_a"
228 external mv : t -> string -> string -> unit = "ocaml_guestfs_mv"
229 external drop_caches : t -> int -> unit = "ocaml_guestfs_drop_caches"
230 external dmesg : t -> string = "ocaml_guestfs_dmesg"
231 external ping_daemon : t -> unit = "ocaml_guestfs_ping_daemon"
232 external equal : t -> string -> string -> bool = "ocaml_guestfs_equal"
233 external strings : t -> string -> string array = "ocaml_guestfs_strings"
234 external strings_e : t -> string -> string -> string array = "ocaml_guestfs_strings_e"
235 external hexdump : t -> string -> string = "ocaml_guestfs_hexdump"