Module Qcow_cache
val create : read_cluster:(Qcow_types.Cluster.t -> (Cstruct.t, Mirage_block.error) Stdlib.result Lwt.t) -> write_cluster:(Qcow_types.Cluster.t -> Cstruct.t -> (unit, Mirage_block.write_error) Stdlib.result Lwt.t) -> unit -> t
Create a cache of clusters, given the read/write functions
val read : t -> Qcow_types.Cluster.t -> (Cstruct.t, Mirage_block.error) Stdlib.result Lwt.t
read t cluster
returns the data incluster
val write : t -> Qcow_types.Cluster.t -> Cstruct.t -> (unit, Mirage_block.write_error) Stdlib.result Lwt.t
write t cluster data
writesdata
tocluster
val remove : t -> Qcow_types.Cluster.t -> unit
remove t cluster
drops any cache associated withcluster
val resize : t -> Qcow_types.Cluster.t -> unit
resize t new_size_clusters
drops any cache entries which are beyond the new file size.
module Debug : sig ... end