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.
A compressed tar is one stream that decodes only from the front, so it is
one unit holding every entry, always streamed, front to back, with resume
points between the files as well as inside them (see
Run::stream_solid). Without hole punching it still streams, so a
crash resumes from the last point, but nothing is freed until the end.
Structs§
Enums§
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