package qcow

  1. Overview
  2. Docs
type t = {
  1. discard : bool;
    (*

    true if `discard` will be enabled at runtime

    *)
  2. compact_after_unmaps : int64 option;
    (*

    automatically compact after n sectors are unmapped

    *)
}

Runtime configuration of a device

val create : ?discard:bool -> ?compact_after_unmaps:int64 -> unit -> t

create ?discard ?compact_after_unmaps () constructs a runtime configuration

val to_string : t -> string

Marshal a config into a string suitable for a command-line argument

val of_string : string -> [ `Ok of t | `Error of [ `Msg of string ] ]

Parse the result of a previous to_string invocation

OCaml

Innovation. Community. Security.