X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=ocaml%2Fguestfs.mli;h=d15335e7db2099de5582168012217e873492f549;hb=da85ed425dc828ef4b8817f64d448101a88507b5;hp=97180b0d4a4c9c15797d48c8f62e1461a68593f4;hpb=826020fe18bf2eee43f8afea392874bb88c0650a;p=libguestfs.git diff --git a/ocaml/guestfs.mli b/ocaml/guestfs.mli index 97180b0..d15335e 100644 --- a/ocaml/guestfs.mli +++ b/ocaml/guestfs.mli @@ -124,6 +124,12 @@ type statvfs = { namemax : int64; } +type dirent = { + ino : int64; + ftyp : char; + name : string; +} + val test0 : t -> string -> string option -> string array -> bool -> int -> string -> string -> unit (** internal test function - do not use *) @@ -280,6 +286,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 *) @@ -652,3 +664,45 @@ val tail : t -> string -> string array 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 *) + +val mknod : t -> int -> int -> int -> string -> unit +(** make block, character or FIFO devices *) + +val mkfifo : t -> int -> string -> unit +(** make FIFO (named pipe) *) + +val mknod_b : t -> int -> int -> int -> string -> unit +(** make block device node *) + +val mknod_c : t -> int -> int -> int -> string -> unit +(** make char device node *) + +val umask : t -> int -> int +(** set file mode creation mask (umask) *) + +val readdir : t -> string -> dirent array +(** read directories entries *) +