X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=ocaml%2Fguestfs.mli;h=e3cee18fe8d894a780ebc8c1ddb3489587255e77;hb=161018ed1e90c796e6e099859979da02d5f3e410;hp=b1452abef976090c1ce661e4f0a5375d80c885bf;hpb=e7eca50046e9a69dac27c0bee832af0a3014e02c;p=libguestfs.git diff --git a/ocaml/guestfs.mli b/ocaml/guestfs.mli index b1452ab..e3cee18 100644 --- a/ocaml/guestfs.mli +++ b/ocaml/guestfs.mli @@ -211,3 +211,69 @@ val aug_save : t -> unit val aug_load : t -> unit (** load files into the tree *) +val aug_ls : t -> string -> string array +(** list Augeas nodes under a path *) + +val rm : t -> string -> unit +(** remove a file *) + +val rmdir : t -> string -> unit +(** remove a directory *) + +val rm_rf : t -> string -> unit +(** remove a file or directory recursively *) + +val mkdir : t -> string -> unit +(** create a directory *) + +val mkdir_p : t -> string -> unit +(** create a directory and parents *) + +val chmod : t -> int -> string -> unit +(** change file mode *) + +val chown : t -> int -> int -> string -> unit +(** change file owner and group *) + +val exists : t -> string -> bool +(** test if file or directory exists *) + +val is_file : t -> string -> bool +(** test if file exists *) + +val is_dir : t -> string -> bool +(** test if file exists *) + +val pvcreate : t -> string -> unit +(** create an LVM physical volume *) + +val vgcreate : t -> string -> string array -> unit +(** create an LVM volume group *) + +val lvcreate : t -> string -> string -> int -> unit +(** create an LVM volume group *) + +val mkfs : t -> string -> string -> unit +(** make a filesystem *) + +val sfdisk : t -> string -> int -> int -> int -> string array -> unit +(** create partitions on a block device *) + +val write_file : t -> string -> string -> int -> unit +(** create a file *) + +val umount : t -> string -> unit +(** unmount a filesystem *) + +val mounts : t -> string array +(** show mounted filesystems *) + +val umount_all : t -> unit +(** unmount all filesystems *) + +val lvm_remove_all : t -> unit +(** remove all LVM LVs, VGs and PVs *) + +val file : t -> string -> string +(** determine file type *) +