package mbr-format

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Mbr.GeometrySource

Sourcetype t = {
  1. cylinders : int;
  2. heads : int;
  3. sectors : int;
}

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

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

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

Sourceval to_chs : t -> int64 -> t

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

OCaml

Innovation. Community. Security.