package vhd-format-lwt
Lwt interface to read/write VHD format data
Install
Dune Dependency
github.com
Readme
Changelog
LGPL-2.1-only WITH OCaml-LGPL-linking-exception License
Edit opam file
Versions (6)
Authors
Maintainers
Sources
vhd-format-v0.12.1.tbz
sha256=d32a295ddabfe4e21424264fd1afd840d11f7eaa7b7fbed55ea625ee8bc04d78
sha512=67928482f2c402d668b5a69010a6e8fa54a76defa04ed7213d9d6544ad47229b4660e20b503ef26d78372b37fcaf0c686425552eb8d0c7f202c2c8901270caa7
Description
A pure OCaml library to read and write vhd format data, plus a simple command-line tool which allows vhd files to be interrogated, manipulated, format-converted and streamed to and from files and remote servers.
This package provides an Lwt compatible interface to the library.
README
ocaml-vhd
A pure OCaml library to read and write vhd format data, plus a simple command-line tool which allows vhd files to be interrogated, manipulated, format-converted and streamed to and from files and remote servers.
Example usage
To initialise your environment in utop:
open Lwt;;
#require "vhd-format";;
#require "vhd-format-lwt";;
module V = Vhd.Make(Vhd_lwt);;
To open a file and read the first sector:
V.Vhd_IO.openfile "foo.vhd" >>= fun f -> V.Vhd_IO.read_sector f 0L;;
- : Cstruct.t option = Some {Cstruct.buffer = <abstr>; off = 0; len = 512}
To read the vhd file header:
V.Vhd_IO.openfile "89a62601-c82a-447a-a7fd-f7f379195e80.vhd" >>= fun f -> return f.Vhd.Vhd.header;;
- : Vhd.Header.t = {
Vhd.Header.table_offset = 1536L; max_table_entries = 12288;
block_size_sectors_shift = 12; checksum = -3001l; parent_unique_id = <abstr>;
parent_time_stamp = 0l; parent_unicode_name = [||];
parent_locators =
[|{Vhd.Parent_locator.platform_code = Vhd.Platform_code.None;
platform_data_space = 0l; platform_data_space_original = 0l;
platform_data_length = 0l; platform_data_offset = 0L;
platform_data = {Cstruct.buffer = <abstr>; off = 0; len = 0}};
{Vhd.Parent_locator.platform_code = Vhd.Platform_code.None;
platform_data_space = 0l; platform_data_space_original = 0l;
platform_data_length = 0l; platform_data_offset = 0L;
platform_data = {Cstruct.buffer = <abstr>; off = 0; len = 0}};
{Vhd.Parent_locator.platform_code = Vhd.Platform_code.None;
platform_data_space = 0l; platform_data_space_original = 0l;
platform_data_length = 0l; platform_data_offset = 0L;
platform_data = {Cstruct.buffer = <abstr>; off = 0; len = 0}};
{Vhd.Parent_locator.platform_code = Vhd.Platform_code.None;
platform_data_space = 0l; platform_data_space_original = 0l;
platform_data_length = 0l; platform_data_offset = 0L;
platform_data = {Cstruct.buffer = <abstr>; off = 0; len = 0}};
{Vhd.Parent_locator.platform_code = Vhd.Platform_code.None;
platform_data_space = 0l; platform_data_space_original = 0l;
platform_data_length = 0l; platform_data_offset = 0L;
platform_data = {Cstruct.buffer = <abstr>; off = 0; len = 0}};
{Vhd.Parent_locator.platform_code = Vhd.Platform_code.None;
platform_data_space = 0l; platform_data_space_original = 0l;
platform_data_length = 0l; platform_data_offset = 0L;
platform_data = {Cstruct.buffer = <abstr>; off = 0; len = 0}};
{Vhd.Parent_locator.platform_code = Vhd.Platform_code.None;
platform_data_space = 0l; platform_data_space_original = 0l;
platform_data_length = 0l; platform_data_offset = 0L;
platform_data = {Cstruct.buffer = <abstr>; off = 0; len = 0}};
{Vhd.Parent_locator.platform_code = Vhd.Platform_code.None;
platform_data_space = 0l; platform_data_space_original = 0l;
platform_data_length = 0l; platform_data_offset = 0L;
platform_data = {Cstruct.buffer = <abstr>; off = 0; len = 0}}|]}
Dependencies (6)
-
dune
>= "1.0"
- vhd-format
-
mirage-block
>= "2.0.1"
-
lwt
>= "3.2.0"
- cstruct
-
ocaml
>= "4.02.3" & < "5.0.0"
Dev Dependencies (3)
-
io-page
with-test & >= "2.4.0"
-
io-page-unix
with-test
-
ounit
with-test
Used by
None
Conflicts
None
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page