X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=ocaml%2Fguestfs.mli;h=390b6b9c74e91728506d37ddc52a0b7d0b2e0eff;hb=b2ed0f4c55c2bd3d07341ba2207f0cb238eb4e18;hp=686bc6092ffc15a1246e7433a94972d35f0f2655;hpb=d1a1ab972bb22f4c38a21fcc73f81650aaa03b4e;p=libguestfs.git diff --git a/ocaml/guestfs.mli b/ocaml/guestfs.mli index 686bc60..390b6b9 100644 --- a/ocaml/guestfs.mli +++ b/ocaml/guestfs.mli @@ -604,3 +604,57 @@ val find : t -> string -> string array val e2fsck_f : t -> string -> unit (** check an ext2/ext3 filesystem *) +val sleep : t -> int -> unit +(** sleep for some seconds *) + +val ntfs_3g_probe : t -> bool -> string -> int +(** probe NTFS volume *) + +val sh : t -> string -> string +(** run a command via the shell *) + +val sh_lines : t -> string -> string array +(** run a command via the shell returning lines *) + +val glob_expand : t -> string -> string array +(** expand a wildcard path *) + +val scrub_device : t -> string -> unit +(** scrub (securely wipe) a device *) + +val scrub_file : t -> string -> unit +(** scrub (securely wipe) a file *) + +val scrub_freespace : t -> string -> unit +(** scrub (securely wipe) free space *) + +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) *) +