Skip to main content

Module engine

Module engine 

Source
Expand description

In-place extraction, independent of the archive format.

Units are processed from the highest offset down. After each batch the archive is truncated to where the batch began, which every filesystem supports, FAT32 and exFAT included, so this path needs no hole punching.

A unit too large for the free space would need room for all of its output before any of its archive bytes could go. Where the filesystem can punch holes and the format can resume decoding mid-file, such a unit is streamed instead: every [stream_step] of output it is flushed, a resume point is journaled, and only then are the archive bytes before that point punched out. The archive’s length stays the same until the unit commits through the ordinary path.

Structs§

Job
Progress
Run

Enums§

Outcome

Functions§

finish_orphaned
A run that crashed after deleting the archive but before cleaning up only has its links and side files left to deal with.
human