package mgit

  1. Overview
  2. Docs

Module Mgit_blkSource

Sourcemodule Device : sig ... end
Sourcemodule Append : sig ... end

An append-only block device.

Sourcemodule type BLOCK = Device.S

Blk is a module which splits a block device into 3 parts:

  • a temporary part
  • two parts, one of which is the most up to date

The aim is to be able to refer to a zone atomically with consistent information. The old zone can be reused to apply an update which will (if all goes well) be treated as the new active zone once the atomic point is reached at which the changes to the Blk metadata are confirmed (see commit).

Sourcetype zone = [
  1. | `Active
  2. | `Inactive
  3. | `Temporary
]
Sourcemodule Make (Block : BLOCK) : sig ... end