summaryrefslogtreecommitdiffstats
path: root/ocaml/guestfs.mli
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-04-15 17:48:54 +0100
committerRichard Jones <rjones@redhat.com>2009-04-15 17:48:54 +0100
commitb348eacbc4d84337856cf7cca518d61c63e92631 (patch)
treead6cefaf75e05e6a4da9c9b18061222a3ba98727 /ocaml/guestfs.mli
parente038597ebd1e43c83a8ddde21c4f1898eb7a9a98 (diff)
downloadlibguestfs-b348eacbc4d84337856cf7cca518d61c63e92631.tar.gz
libguestfs-b348eacbc4d84337856cf7cca518d61c63e92631.tar.xz
libguestfs-b348eacbc4d84337856cf7cca518d61c63e92631.zip
Generated code for blockdev_* calls, RInt64, enhanced tests.
Diffstat (limited to 'ocaml/guestfs.mli')
-rw-r--r--ocaml/guestfs.mli30
1 files changed, 30 insertions, 0 deletions
diff --git a/ocaml/guestfs.mli b/ocaml/guestfs.mli
index e6f5231e..b9b9f522 100644
--- a/ocaml/guestfs.mli
+++ b/ocaml/guestfs.mli
@@ -325,3 +325,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 *)
+