Mirage_block_combinators.Copy
module A : Mirage_block.S
module B : Mirage_block.S
type error#row
The type for copy errors.
and error = private [>
|
`Is_read_only
`Different_sizes
]
val pp_error : error Fmt.t
pp_error is the pretty-printer for copy errors.
pp_error
val v : src:A.t -> dst:B.t -> ( unit, error ) Stdlib.result Lwt.t
Copy all data from a source BLOCK device to a destination BLOCK device.
Fails with `Different_sizes if the source and destination are not exactly the same size.
Fails with `Is_read_only if the destination device is read-only.