12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970(*
* Copyright (c) 2018-2021 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.
*)moduleDefault=structletlower_root=Irmin_layers.Layer_id.to_string`Lowerletupper0_root=Irmin_layers.Layer_id.to_string`Upper0letupper1_root=Irmin_layers.Layer_id.to_string`Upper1letwith_lower=trueletblocking_copy_size=64endmoduleConf=Irmin.Private.ConfmodulePack=Irmin_pack.Confletlower_root_key=Conf.key~doc:"The root directory for the lower layer.""root_lower"Conf.stringDefault.lower_rootletlower_rootconf=Conf.getconflower_root_keyletupper_root1_key=Conf.key~doc:"The root directory for the upper layer.""root_upper"Conf.stringDefault.upper1_rootletupper_root1conf=Conf.getconfupper_root1_keyletupper_root0_key=Conf.key~doc:"The root directory for the secondary upper layer.""root_second"Conf.stringDefault.upper0_rootletupper_root0conf=Conf.getconfupper_root0_keyletwith_lower_key=Conf.key~doc:"Use a lower layer.""with-lower"Conf.boolDefault.with_lowerletwith_lowerconf=Conf.getconfwith_lower_keyletblocking_copy_size_key=Conf.key~doc:"Specify the maximum size (in bytes) that can be copied in the blocking \
portion of the freeze.""blocking-copy"Conf.intDefault.blocking_copy_sizeletblocking_copy_sizeconf=Conf.getconfblocking_copy_size_keyletv?(conf=Conf.empty)?(lower_root=Default.lower_root)?(upper_root1=Default.upper1_root)?(upper_root0=Default.upper0_root)?(with_lower=Default.with_lower)?(blocking_copy_size=Default.blocking_copy_size)()=letwith_bindingkvc=Conf.addckvinconf|>with_bindinglower_root_keylower_root|>with_bindingupper_root1_keyupper_root1|>with_bindingupper_root0_keyupper_root0|>with_bindingwith_lower_keywith_lower|>with_bindingblocking_copy_size_keyblocking_copy_size