package mirage-block-unix
Module Block.ConfigSource
Source
type t = {buffered : bool;(*true if I/O hits the OS disk caches, false if "direct"
*)sync : sync_behaviour option;path : string;(*path to the underlying file
*)lock : bool;(*true if the file should be locked preventing concurrent modification
*)
}Configuration of a device
create ?buffered ?sync ?lock path constructs a configuration referencing the file stored at path.
Marshal a config into a string of the form file://<path>?sync=(0|1)&buffered=(0|1)