Signed-off-by: Jonathan Ludlam <Jonathan.Ludlam@eu.citrix.com>
Acked-by: David Scott <dave.scott@eu.citrix.com>
version = "@VERSION@"
description = "device-mapper ocaml interface"
-requires = "unix,jsonrpc"
+requires = "unix,rpc-light.json"
archive(byte) = "camldm.cma"
archive(native) = "camldm.cmxa"
type stripety = { chunk_size : int64; dests : dev array; }
type mapty = Linear of dev | Striped of stripety
type mapping = { start : int64; len : int64; map : mapty; }
+type mapping_array = {
+ m : mapping array
+}
type status = {
exists : bool;
suspended : bool;
exception CreateError of string
exception ReloadError of string
+val rpc_of_mapping_array : mapping_array -> Rpc.t
+val mapping_array_of_rpc : Rpc.t -> mapping_array
val convert_mapty : mapty -> (string * string) list -> string * string
val create : string -> mapping array -> (string * string) list -> unit
val reload : string -> mapping array -> (string * string) list -> unit