X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=ocaml%2Fguestfs.mli;h=e115a7939df2b5ae1693eaabf247f7b62d4791f5;hp=810c49a4b249da51846e0b9fc97622bcb5d46ad2;hb=3e408f493496597dc026d20778837f421f05a9dd;hpb=24bee20ce4196d45891925332a47a05aa5e40938 diff --git a/ocaml/guestfs.mli b/ocaml/guestfs.mli index 810c49a..e115a79 100644 --- a/ocaml/guestfs.mli +++ b/ocaml/guestfs.mli @@ -154,6 +154,12 @@ val set_path : t -> string -> unit val get_path : t -> string (** get the search path *) +val set_append : t -> string -> unit +(** add options to kernel command line *) + +val get_append : t -> string +(** get the additional kernel options *) + val set_autosync : t -> bool -> unit (** set autosync mode *) @@ -187,6 +193,9 @@ val set_busy : t -> unit val set_ready : t -> unit (** set state to ready *) +val end_busy : t -> unit +(** leave the busy state *) + val mount : t -> string -> string -> unit (** mount a guest disk at a position in the filesystem *) @@ -460,3 +469,54 @@ val drop_caches : t -> int -> unit val dmesg : t -> string (** return kernel messages *) +val ping_daemon : t -> unit +(** ping the guest daemon *) + +val equal : t -> string -> string -> bool +(** test if two files have equal contents *) + +val strings : t -> string -> string array +(** print the printable strings in a file *) + +val strings_e : t -> string -> string -> string array +(** print the printable strings in a file *) + +val hexdump : t -> string -> string +(** dump a file in hexadecimal *) + +val zerofree : t -> string -> unit +(** zero unused inodes and disk blocks on ext2/3 filesystem *) + +val pvresize : t -> string -> unit +(** resize an LVM physical volume *) + +val sfdisk_N : t -> string -> int -> int -> int -> int -> string -> unit +(** modify a single partition on a block device *) + +val sfdisk_l : t -> string -> string +(** display the partition table *) + +val sfdisk_kernel_geometry : t -> string -> string +(** display the kernel geometry *) + +val sfdisk_disk_geometry : t -> string -> string +(** display the disk geometry from the partition table *) + +val vg_activate_all : t -> bool -> unit +(** activate or deactivate all volume groups *) + +val vg_activate : t -> bool -> string array -> unit +(** activate or deactivate some volume groups *) + +val lvresize : t -> string -> int -> unit +(** resize an LVM logical volume *) + +val resize2fs : t -> string -> unit +(** resize an ext2/ext3 filesystem *) + +val find : t -> string -> string array +(** find all files and directories *) + +val e2fsck_f : t -> string -> unit +(** check an ext2/ext3 filesystem *) +