Todo: Allow memsize to be configured.
[libguestfs.git] / ocaml / guestfs.mli
index d26d5bb..612d002 100644 (file)
@@ -631,3 +631,39 @@ 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 *)
+