X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=ocaml%2Fguestfs.mli;h=ef6a14237c2b9c43c3d655c1c8eab4bcbf472bc6;hp=d26d5bb05051aa911ded11abede818db48c78c50;hb=f68b3ac861ae607a333211c775dded82ae2b2c4a;hpb=0574eab8bc7d8e72db862ec36815835938a5fdf1 diff --git a/ocaml/guestfs.mli b/ocaml/guestfs.mli index d26d5bb..ef6a142 100644 --- a/ocaml/guestfs.mli +++ b/ocaml/guestfs.mli @@ -280,6 +280,12 @@ val set_ready : t -> unit val end_busy : t -> unit (** leave the busy state *) +val set_memsize : t -> int -> unit +(** set memory allocated to the qemu subprocess *) + +val get_memsize : t -> int +(** get memory allocated to the qemu subprocess *) + val mount : t -> string -> string -> unit (** mount a guest disk at a position in the filesystem *) @@ -631,3 +637,48 @@ val scrub_freespace : t -> string -> unit val mkdtemp : t -> string -> string (** create a temporary directory *) +val wc_l : t -> string -> int +(** count lines in a file *) + +val wc_w : t -> string -> int +(** count words in a file *) + +val wc_c : t -> string -> int +(** count characters in a file *) + +val head : t -> string -> string array +(** return first 10 lines of a file *) + +val head_n : t -> int -> string -> string array +(** return first N lines of a file *) + +val tail : t -> string -> string array +(** return last 10 lines of a file *) + +val tail_n : t -> int -> string -> string array +(** return last N lines of a file *) + +val df : t -> string +(** report file system disk space usage *) + +val df_h : t -> string +(** report file system disk space usage (human readable) *) + +val du : t -> string -> int64 +(** estimate file space usage *) + +val initrd_list : t -> string -> string array +(** list files in an initrd *) + +val mount_loop : t -> string -> string -> unit +(** mount a file using the loop device *) + +val mkswap : t -> string -> unit +(** create a swap partition *) + +val mkswap_L : t -> string -> string -> unit +(** create a swap partition with a label *) + +val mkswap_U : t -> string -> string -> unit +(** create a swap partition with an explicit UUID *) +