X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=ocaml%2Fguestfs.mli;h=e3cee18fe8d894a780ebc8c1ddb3489587255e77;hp=cef89438903c2e0ea6b11989a2306d6c60ba0668;hb=adefe14e308a0f8cf73f9c60693a3dbbded157b9;hpb=94050e0344685b6916e21581e618ad3e85795008 diff --git a/ocaml/guestfs.mli b/ocaml/guestfs.mli index cef8943..e3cee18 100644 --- a/ocaml/guestfs.mli +++ b/ocaml/guestfs.mli @@ -145,30 +145,135 @@ val cat : t -> string -> string val ll : t -> string -> string (** list the files in a directory (long format) *) -val ls : t -> string -> string list +val ls : t -> string -> string array (** list the files in a directory *) -val list_devices : t -> string list +val list_devices : t -> string array (** list the block devices *) -val list_partitions : t -> string list +val list_partitions : t -> string array (** list the partitions *) -val pvs : t -> string list +val pvs : t -> string array (** list the LVM physical volumes (PVs) *) -val vgs : t -> string list +val vgs : t -> string array (** list the LVM volume groups (VGs) *) -val lvs : t -> string list +val lvs : t -> string array (** list the LVM logical volumes (LVs) *) -val pvs_full : t -> lvm_pv list +val pvs_full : t -> lvm_pv array (** list the LVM physical volumes (PVs) *) -val vgs_full : t -> lvm_vg list +val vgs_full : t -> lvm_vg array (** list the LVM volume groups (VGs) *) -val lvs_full : t -> lvm_lv list +val lvs_full : t -> lvm_lv array (** list the LVM logical volumes (LVs) *) +val read_lines : t -> string -> string array +(** read file as lines *) + +val aug_init : t -> string -> int -> unit +(** create a new Augeas handle *) + +val aug_close : t -> unit +(** close the current Augeas handle *) + +val aug_defvar : t -> string -> string option -> int +(** define an Augeas variable *) + +val aug_defnode : t -> string -> string -> string -> int * bool +(** define an Augeas node *) + +val aug_get : t -> string -> string +(** look up the value of an Augeas path *) + +val aug_set : t -> string -> string -> unit +(** set Augeas path to value *) + +val aug_insert : t -> string -> string -> bool -> unit +(** insert a sibling Augeas node *) + +val aug_rm : t -> string -> int +(** remove an Augeas path *) + +val aug_mv : t -> string -> string -> unit +(** move Augeas node *) + +val aug_match : t -> string -> string array +(** return Augeas nodes which match path *) + +val aug_save : t -> unit +(** write all pending Augeas changes to disk *) + +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 *) +