package mirage-block-unix

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = {
  1. buffered : bool;
    (*

    true if I/O hits the OS disk caches, false if "direct"

    *)
  2. sync : bool;
    (*

    true if flush flushes all caches, including disk drive caches

    *)
  3. path : string;
    (*

    path to the underlying file

    *)
}

Configuration of a device

val create : ?buffered:bool -> ?sync:bool -> string -> t

create ?buffered ?sync path constructs a configuration referencing the file stored at path/

val to_string : t -> string

Marshal a config into a string of the form file://<path>?sync=(0|1)&buffered=(0|1)

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.