X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=ocaml%2Fguestfs.mli;h=564f16397ea644013e626a1760e8fbe2be4c325d;hp=291f34011c33768977082434ca92ad37901e96e1;hb=c41fe04a652437c920acb0e820762c53bf44a139;hpb=b03ee3675bed8d739ae722ed8c030ae02b3cb0ed diff --git a/ocaml/guestfs.mli b/ocaml/guestfs.mli index 291f340..564f163 100644 --- a/ocaml/guestfs.mli +++ b/ocaml/guestfs.mli @@ -124,6 +124,87 @@ type statvfs = { namemax : int64; } +val test0 : t -> string -> string option -> string array -> bool -> int -> string -> string -> unit +(** internal test function - do not use *) + +val test0rint : t -> string -> int +(** internal test function - do not use *) + +val test0rinterr : t -> int +(** internal test function - do not use *) + +val test0rint64 : t -> string -> int64 +(** internal test function - do not use *) + +val test0rint64err : t -> int64 +(** internal test function - do not use *) + +val test0rbool : t -> string -> bool +(** internal test function - do not use *) + +val test0rboolerr : t -> bool +(** internal test function - do not use *) + +val test0rconststring : t -> string -> string +(** internal test function - do not use *) + +val test0rconststringerr : t -> string +(** internal test function - do not use *) + +val test0rstring : t -> string -> string +(** internal test function - do not use *) + +val test0rstringerr : t -> string +(** internal test function - do not use *) + +val test0rstringlist : t -> string -> string array +(** internal test function - do not use *) + +val test0rstringlisterr : t -> string array +(** internal test function - do not use *) + +val test0rintbool : t -> string -> int * bool +(** internal test function - do not use *) + +val test0rintboolerr : t -> int * bool +(** internal test function - do not use *) + +val test0rpvlist : t -> string -> lvm_pv array +(** internal test function - do not use *) + +val test0rpvlisterr : t -> lvm_pv array +(** internal test function - do not use *) + +val test0rvglist : t -> string -> lvm_vg array +(** internal test function - do not use *) + +val test0rvglisterr : t -> lvm_vg array +(** internal test function - do not use *) + +val test0rlvlist : t -> string -> lvm_lv array +(** internal test function - do not use *) + +val test0rlvlisterr : t -> lvm_lv array +(** internal test function - do not use *) + +val test0rstat : t -> string -> stat +(** internal test function - do not use *) + +val test0rstaterr : t -> stat +(** internal test function - do not use *) + +val test0rstatvfs : t -> string -> statvfs +(** internal test function - do not use *) + +val test0rstatvfserr : t -> statvfs +(** internal test function - do not use *) + +val test0rhashtable : t -> string -> (string * string) list +(** internal test function - do not use *) + +val test0rhashtableerr : t -> (string * string) list +(** internal test function - do not use *) + val launch : t -> unit (** launch the qemu subprocess *) @@ -154,6 +235,12 @@ val set_path : t -> string -> unit val get_path : t -> string (** get the search path *) +val set_append : t -> string -> unit +(** add options to kernel command line *) + +val get_append : t -> string +(** get the additional kernel options *) + val set_autosync : t -> bool -> unit (** set autosync mode *) @@ -187,6 +274,9 @@ val set_busy : t -> unit val set_ready : t -> unit (** set state to ready *) +val end_busy : t -> unit +(** leave the busy state *) + val mount : t -> string -> string -> unit (** mount a guest disk at a position in the filesystem *) @@ -436,3 +526,78 @@ val set_e2uuid : t -> string -> string -> unit val get_e2uuid : t -> string -> string (** get the ext2/3/4 filesystem UUID *) +val fsck : t -> string -> string -> int +(** run the filesystem checker *) + +val zero : t -> string -> unit +(** write zeroes to the device *) + +val grub_install : t -> string -> string -> unit +(** install GRUB *) + +val cp : t -> string -> string -> unit +(** copy a file *) + +val cp_a : t -> string -> string -> unit +(** copy a file or directory recursively *) + +val mv : t -> string -> string -> unit +(** move a file *) + +val drop_caches : t -> int -> unit +(** drop kernel page cache, dentries and inodes *) + +val dmesg : t -> string +(** return kernel messages *) + +val ping_daemon : t -> unit +(** ping the guest daemon *) + +val equal : t -> string -> string -> bool +(** test if two files have equal contents *) + +val strings : t -> string -> string array +(** print the printable strings in a file *) + +val strings_e : t -> string -> string -> string array +(** print the printable strings in a file *) + +val hexdump : t -> string -> string +(** dump a file in hexadecimal *) + +val zerofree : t -> string -> unit +(** zero unused inodes and disk blocks on ext2/3 filesystem *) + +val pvresize : t -> string -> unit +(** resize an LVM physical volume *) + +val sfdisk_N : t -> string -> int -> int -> int -> int -> string -> unit +(** modify a single partition on a block device *) + +val sfdisk_l : t -> string -> string +(** display the partition table *) + +val sfdisk_kernel_geometry : t -> string -> string +(** display the kernel geometry *) + +val sfdisk_disk_geometry : t -> string -> string +(** display the disk geometry from the partition table *) + +val vg_activate_all : t -> bool -> unit +(** activate or deactivate all volume groups *) + +val vg_activate : t -> bool -> string array -> unit +(** activate or deactivate some volume groups *) + +val lvresize : t -> string -> int -> unit +(** resize an LVM logical volume *) + +val resize2fs : t -> string -> unit +(** resize an ext2/ext3 filesystem *) + +val find : t -> string -> string array +(** find all files and directories *) + +val e2fsck_f : t -> string -> unit +(** check an ext2/ext3 filesystem *) +