opam-version: "2.0"
maintainer: "dave@recoil.org"
authors: ["David Scott"]
license: "ISC"
homepage: "https://github.com/mirage/ocaml-qcow"
dev-repo: "git+https://github.com/mirage/ocaml-qcow.git"
bug-reports: "https://github.com/mirage/ocaml-qcow/issues"
doc: "https://mirage.github.io/ocaml-qcow"
tags: [
  "org:mirage"
]

build: [
  ["jbuilder" "subst" "-p" name] {pinned}
  ["jbuilder" "build" "-p" name "-j" jobs]
]
depends: [
  "ocaml" {>= "4.03.0"}
  "astring"
  "cstruct" {< "4.0.0"}
  "result"
  "prometheus"
  "mirage-types-lwt" {>= "3.0.0" & < "3.7.0"}
  "lwt"
  "mirage-block" {>= "0.2" & < "2.0.0"}
  "mirage-block-lwt"
  "mirage-block-unix" {>= "2.3.0"}
  "mirage-time" {< "2.0.0"}
  "mirage-time-lwt"
  "sexplib" {< "v0.15"}
  "logs"
  "fmt" {>= "0.8.2"}
  "io-page-unix" {>= "2.0.0"}
  "jbuilder" {>= "1.0+beta10"}
  "ppx_tools"
  "ppx_sexp_conv" {< "v0.15"}
  "ppx_type_conv" {build}
  "ounit" {with-test}
  "mirage-block-ramdisk" {with-test}
  "ezjsonm" {with-test}
  "nbd" {with-test & >= "2.0.1"}
]
synopsis: "Support for Qcow2 images"
description: """
[![Build Status](https://travis-ci.org/mirage/ocaml-qcow.png?branch=master)](https://travis-ci.org/mirage/ocaml-qcow) [![Coverage Status](https://coveralls.io/repos/mirage/ocaml-qcow/badge.png?branch=master)](https://coveralls.io/r/mirage/ocaml-qcow?branch=master)

Please read [the API documentation](https://mirage.github.io/ocaml-qcow/).

Features
--------

- supports `resize`
- exposes sparseness information
- produces files which can be understood by qemu (although not in
  reverse since we don't support many features)

Example
-------

In a top-level like utop:
```ocaml"""
url {
  src:
    "https://github.com/mirage/ocaml-qcow/releases/download/0.10.4/qcow-0.10.4.tbz"
  checksum: "md5=27e3a0ab128c53acc4da3e6ce5724e87"
}
