package mbr-format

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = {
  1. cylinders : int;
  2. heads : int;
  3. sectors : int;
}

Represents a sector address using the cylinder-heads-sectors addressing scheme.

val unmarshal : Cstruct.t -> (t, string) Stdlib.result
val of_lba_size : int64 -> (t, string) Stdlib.result

For LBA addressable disks of < 8GiB, synthesise a plausible geometry given a total number of sectors

val to_chs : t -> int64 -> t

Given a geometry and an LBA offset, compute the CHS of the offset