Tar_mirage.Make_KV_RWConstruct a read-write key-value store from an existing block device containing tar-format data. Note that it is append-only meaning removing or renaming files is currently unsupported and will return an error.
include Mirage_kv.RWval pp_error : error Fmt.tval disconnect : t -> unit Lwt.tval pp_write_error : write_error Fmt.tval allocate :
t ->
key ->
?last_modified:Ptime.t ->
Optint.Int63.t ->
(unit, write_error) Stdlib.result Lwt.tval set : t -> key -> string -> (unit, write_error) Stdlib.result Lwt.tval set_partial :
t ->
key ->
offset:Optint.Int63.t ->
string ->
(unit, write_error) Stdlib.result Lwt.tval remove : t -> key -> (unit, write_error) Stdlib.result Lwt.tval rename :
t ->
source:key ->
dest:key ->
(unit, write_error) Stdlib.result Lwt.tval connect : BLOCK.t -> t Lwt.tconnect block
val free : t -> int64free t is the number of unused bytes.