cnmcdee 37c27dba8a zseg: pre-create extract target dir so apt zpaqfranz 61.2d works
61.2d refuses -to ext when the target directory does not exist yet (66.1 creates it). extract_segment now makedirs ext/ first, so both versions unpack. Verified byte-identical round-trip with 61.2d and 66.1; make test passes.
2026-12-03 21:05:35 -05:00

lzpaq

zpaqfranz archives with an lzply FEC parity trailer.

The zpaqfranz archive bytes are never modified: lzpaq appends a parity trailer after the archive end. Stock zpaqfranz can still list and extract the archive; lzpaq check verifies the trailer and lzpaq repair recovers damaged archive bytes from the parity (repair is TODO in the v0.1 skeleton).

See DESIGN.md for the trailer layout, the append verdict, and the limitations (including encrypted archives).

Build

make -j$(nproc)   # needs gcc, liblz (lzip library, -llz), zpaqfranz 66.1
make test         # CRC16 known-answer test + CLI smoke tests

Usage

lzpaq add [-r 0-4] archive.zpaq files...   # add files (new version)
lzpaq extract archive.zpaq [files...]      # extract
lzpaq test archive.zpaq                    # verify archive + trailer
lzpaq check archive.zpaq                   # verify trailer + per-block CRC16
lzpaq repair archive.zpaq                  # repair from parity (TODO)

-r mirrors lzply: 0 = no RS parity, 1 = 8, 2 = 16, 3 = 24, 4 = 32 RS parity bytes per 255-byte block. Default -r 2.

LZPAQ_ZPAQFRANZ overrides the zpaqfranz binary (default: zpaqfranz).

Sources

FEC modules in src/ are verbatim copies from lzply main — see SOURCES.md. lzply remains the owner of that code.

Tools

  • tools/zseg.py — segment-parallel zpaqfranz compression: split input into N segments, compress each on its own core (-m5), one .zseg container out. ~6x on novel data at N=8 for ~11-15% larger output; do NOT use on inputs with large internal repeats (see tools/zseg.md for the measured tables and the warning).
S
Description
No description provided
Readme
118 KiB
0 Stars 1 Watchers 0 Forks
Languages
C 94.4%
Python 5.1%
Makefile 0.5%