Tar_mirage.Make_KV_RW
Construct 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.RW
val pp_error : error Fmt.t
val disconnect : t -> unit Lwt.t
val pp_write_error : write_error Fmt.t
val allocate :
t ->
key ->
?last_modified:Ptime.t ->
Optint.Int63.t ->
(unit, write_error) Stdlib.result Lwt.t
val set : t -> key -> string -> (unit, write_error) Stdlib.result Lwt.t
val set_partial :
t ->
key ->
offset:Optint.Int63.t ->
string ->
(unit, write_error) Stdlib.result Lwt.t
val remove : t -> key -> (unit, write_error) Stdlib.result Lwt.t
val rename :
t ->
source:key ->
dest:key ->
(unit, write_error) Stdlib.result Lwt.t
val connect : BLOCK.t -> t Lwt.t
connect block
val free : t -> int64
free t
is the number of unused bytes.