123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081(*
* Copyright (c) 2022-2022 Tarides <contact@tarides.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*)open!ImportmoduletypeS=sigmoduleFm:File_manager.SwithmoduleIo=Io.UnixmoduleAsync:Async.SmoduleDict:Dict.SwithmoduleFm=FmmoduleErrs:Io_errors.SwithmoduleIo=Fm.IomoduleDispatcher:Dispatcher.SwithmoduleFm=Fmtypehashtypekey=hashPack_key.t[@@derivingirmin]moduleHash:sigvalhash_size:intendmoduleContents_store:sigtype'atvalpurge_lru:'at->unitendmoduleNode_value:sigtypettypestepvalpred:t->(stepoption*[`Contentsofkey|`Inodeofkey|`Nodeofkey])listendmoduleNode_store:sigtype'atvalv:config:Irmin.Backend.Conf.t->fm:Fm.t->dict:Dict.t->dispatcher:Dispatcher.t->readtvalunsafe_find:check_integrity:bool->[<read]t->key->Node_value.toptionvalkey_of_offset:[<read]t->int63->keyvalunsafe_find_no_prefetch:'at->key->Node_value.toptionvalpurge_lru:'at->unitendmoduleCommit_value:sigtypetvalnode:t->keyvalparents:t->keylistendmoduleCommit_store:Pack_store.Swithtypevalue=Commit_value.tandtypekey=keyandtypefile_manager=Fm.tandtypedict=Dict.tandtypedispatcher=Dispatcher.tandtypehash=hashend