package qcow

  1. Overview
  2. Docs
type t = {
  1. id : string;
    (*

    unique name for the prometheus metrics

    *)
  2. discard : bool;
    (*

    discard (aka TRIM) is enabled

    *)
  3. keep_erased : int64 option;
    (*

    maintain a free pool of this many erased sectors

    *)
  4. compact_after_unmaps : int64 option;
    (*

    once more than this many sectors are free, perform a compact

    *)
  5. check_on_connect : bool;
    (*

    perform an integrity check on connect

    *)
  6. runtime_asserts : bool;
    (*

    constantly verify GC invariants are held

    *)
  7. read_only : bool;
    (*

    guarantee to not modify the file

    *)
}
val create : ?id:string -> ?discard:bool -> ?keep_erased:int64 -> ?compact_after_unmaps:int64 -> ?check_on_connect:bool -> ?runtime_asserts:bool -> ?read_only:bool -> unit -> t
val default : unit -> t

default configuration values

val to_string : t -> string

convert the configuration to a string

val of_string : string -> (t, [> `Msg of string ]) Pervasives.result

parse the output of to_string t

OCaml

Innovation. Community. Security.