package mirage-block-lwt

  1. Overview
  2. Docs

Module Mirage_block_lwtSource

Block device implementatins using lwt

Sourcemodule type S = Mirage_block.S with type 'a io = 'a Lwt.t and type page_aligned_buffer = Cstruct.t
Sourcemodule type SEEKABLE = sig ... end
Sourcemodule type RESIZABLE = sig ... end

Utility functions over Mirage BLOCK devices

Sourcemodule Compare (A : S) (B : S) : sig ... end
Sourcemodule Fold (A : S) : sig ... end
Sourcemodule Fast_fold (A : SEEKABLE) : sig ... end
Sourcemodule Copy (A : S) (B : S) : sig ... end
Sourcemodule Sparse_copy (A : SEEKABLE) (B : S) : sig ... end
Sourcemodule Fill (A : S) : sig ... end
Sourcemodule Make_safe (B : S) : sig ... end
Sourcemodule Mem : sig ... end

Very simple in-memory implementation of the block-device signature, using blocks of constant size (16M). Use ramdisk for a more serious implementation.