package mirage-block
Build not checkedInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=8cd1386e7a6ca2c9c3bf04102ed66bd72e3a40ead31abc9716317dd563e5e8f2
sha512=b894f9d7a2269521ce82e17371abc60fc0de76d7c93477e48c2f95baaa2f3d936eedd8e7aee8473252f77352a3ba0ef430ab0ae806a2d22ff75381349029b4c6
Description
This repo contains generic operations over Mirage BLOCK devices.
README
Block implementations for mirage
This repo contains generic operations over Mirage BLOCK devices.
Please consult the API documentation.
Example usage
In a top-level like utop:
# #require "io-page.unix";;
# #require "mirage-block";;
# #require "mirage-block-ramdisk";;
# #require "lwt.syntax";;
# lwt t_or_error = Ramdisk.create ~name:"hello" ~size_sectors:1024L ~sector_size:512;;
val t_or_error : [ `Error of Ramdisk.error | `Ok of Ramdisk.t ] = `Ok <abstr>
# let t = Mirage_block.Error.ok_exn t_or_error;;
val t : Ramdisk.t = <abstr>
# let page = Io_page.(to_cstruct (get 1));;
val page : Ramdisk.page_aligned_buffer =
{Cstruct.buffer = <abstr>; off = 0; len = 4096}
# lwt result_or_error = Ramdisk.read t 0L [ page ];;
val result_or_error : [ `Error of Ramdisk.error | `Ok of unit ] = `Ok ()
# lwt ok_or_error = Mirage_block.sparse_copy (module Ramdisk) t (module Ramdisk) t;;
val ok_or_error :
[ `Error of [> `Different_sizes | `Is_read_only | `Msg of bytes ]
| `Ok of unit ] = `Ok ()
Dependencies (5)
-
cstruct
>= "4.0.0" -
lwt
>= "4.0.0" -
mirage-device
>= "2.0.0" -
dune
>= "1.0" -
ocaml
>= "4.06.0"
Dev Dependencies
None
Used by (16)
-
docteur-unix
< "0.0.3" -
fat-filesystem
>= "0.14.0" & < "0.15.1" - mirage-block-ccm
-
mirage-block-combinators
< "3.0.2" - mirage-block-ramdisk
- mirage-block-solo5
- mirage-block-unikraft
-
mirage-block-unix
>= "2.12.1" - mirage-block-xen
-
nbd
= "6.0.0" -
nbd-tool
< "6.0.1" - nbd-unix
-
qcow
< "0.12.1" -
qcow-tool
< "0.12.1" - tar-mirage
-
vhd-format-lwt
>= "0.12.1" & < "0.13.0"
Conflicts
None
Build status
Results of building mirage-block with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
This version is not in the latest run; the versions below are.
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure