X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=ocaml%2Fguestfs.mli;h=6c763631ace94b4305a0e6ae66c1d708e30212b0;hb=42a8baf3c9abc6f742671f37e9e24b607e5f9857;hp=e6f5231e1e151be1a0448d5e886a3f5096901195;hpb=ad5abc8d367c9c410051062cae066b1b141b4c76;p=libguestfs.git diff --git a/ocaml/guestfs.mli b/ocaml/guestfs.mli index e6f5231..6c76363 100644 --- a/ocaml/guestfs.mli +++ b/ocaml/guestfs.mli @@ -160,6 +160,21 @@ val set_verbose : t -> bool -> unit val get_verbose : t -> bool (** get verbose mode *) +val is_ready : t -> bool +(** is ready to accept commands *) + +val is_config : t -> bool +(** is in configuration state *) + +val is_launching : t -> bool +(** is launching subprocess *) + +val is_busy : t -> bool +(** is busy processing a command *) + +val get_state : t -> int +(** get the current state *) + val mount : t -> string -> string -> unit (** mount a guest disk at a position in the filesystem *) @@ -325,3 +340,33 @@ val statvfs : t -> string -> statvfs val tune2fs_l : t -> string -> (string * string) list (** get ext2/ext3 superblock details *) +val blockdev_setro : t -> string -> unit +(** set block device to read-only *) + +val blockdev_setrw : t -> string -> unit +(** set block device to read-write *) + +val blockdev_getro : t -> string -> bool +(** is block device set to read-only *) + +val blockdev_getss : t -> string -> int +(** get sectorsize of block device *) + +val blockdev_getbsz : t -> string -> int +(** get blocksize of block device *) + +val blockdev_setbsz : t -> string -> int -> unit +(** set blocksize of block device *) + +val blockdev_getsz : t -> string -> int64 +(** get total size of device in 512-byte sectors *) + +val blockdev_getsize64 : t -> string -> int64 +(** get total size of device in bytes *) + +val blockdev_flushbufs : t -> string -> unit +(** flush device buffers *) + +val blockdev_rereadpt : t -> string -> unit +(** reread partition table *) +