package fat-filesystem

  1. Overview
  2. Docs

Module Fat_entry.ChainSource

Sourcetype t = int list

A sequence of clusters containing file data

Sourceval follow : Fat_format.t -> fat -> int -> t

follow_chain format fat cluster returns the list of sectors containing data according to FAT fat which is of type format.

Sourceval extend : Fat_boot_sector.t -> Fat_format.t -> fat -> int option -> int -> t

extend boot format fat last n allocates n free clusters to extend the chain whose current end is last

Sourceval to_sectors : Fat_boot_sector.t -> t -> int list

to_sectors boot t converts the chain t into a sequence of sectors