github fcorbelli/zpaqfranz 66.1
Just about everything

one hour ago

zpaqfranz 66.1: full review, faster and with less limitations and one-of-a-kind backup support

It contains many improvements and fixes and, as always when the changes are this numerous, new bugs may have been introduced, to be fixed in turn.

Just a side-note: the ac -tar (aka: file-level backup and restore of Windows) is (AFAIK) is unique

#378 (comment)
Short version: zpaqfranz try to make a file-level backup of C: (something like wimlib) AND a cluster-backup of "other things" (Windows partitions) to restore a bootable Windows from an empty drive, mixing a hybrid restore.
This require a LOT of testing, on very different situations (just VM, for now)
And a LOT of time

OK, going back to 66.1

There are two main themes: the update to zstd 1.6.0, and a review of the whole source, with many
improvements and bugfixes. In particular, I updated the Windows SFX modules: from now on everybody
can rebuild them, byte by byte, with the material published on GitHub.

zpaqfranz 65.24 ships zstd 1.5.7 and, in its latest versions, uses -m8l as the default method.
zstd has been updated to 1.6.0 and zpaqfranz is aligned with it. This had an unexpected side effect:
the archives produced are different. I explicitly asked the zstd developers whether this was a problem
(I was practically sure it was not, but better to have confirmation), and they confirmed it:
meta/zstd#5061

So, to sum up: the different binary output is not a bug.

Other important items (LSS):

  • zstd 1.6.0 (issue 381, CVE-2026-124851) for -m7 -m8 -m9;
  • -index with -wim and with -tar: the state of the last run is kept beside the
    index, so the next run does not read everything again;
  • -wim on volumes with the $MFT in many pieces (issue 385), x -tar and the
    folders
    (issue 386);
  • -timestamp gives the same archive, to the byte, run after run;
  • new SFX modules, smaller, fixed, and reproducible from the sources;
  • mysqldump and mysqlrestore, Proxmox, ZFS and cloud: reviewed, and tried on real servers.
    Some of the fixes are serious (section 2);
  • bugs fixed;
  • faster: -tar reads the metadata with 4 threads under -ssd; a -turbo on long runs of
    zeros; x -stdout of a file not stored in order; and much more (section 8).
zpaqfranz a w:\data.zpaq c:\data -timestamp 2026-01-01      the same files: the same archive, to the byte
zpaqfranz a w:\img.zpaq c: -image -wim -index w:\img_idx    the next run reads only what changed
zpaqfranz version                                           ...zstd 1.6.0, default method -m8l

Part one: what is new, for the user

  1. zstd 1.6.0 and the -m8l archives
  2. The serious ones: please read
  3. A disk that got full during a backup: check your backups
  4. The SFX modules
  5. -index with -wim and -tar
  6. Issues 385 and 386
  7. -timestamp, the same archive to the byte
  8. Faster
  9. The other fixes

1. zstd 1.6.0 and the -m8l archives

zstd 1.6.0 came out on 23 November 2026, ahead of schedule, because of CVE-2026-124851: the streaming
decompression of malformed data could expose uninitialized memory. zpaqfranz decodes -m8 blocks exactly
that way, so the update matters even when nothing is compressed with zstd. Inside the source
it is the same official single-file library as before, built the same way (see part two).

The -m8l archives are not identical to those of 65.24. On 3.37 GB of files, with
-nolfast -timestamp so that the archives can be compared byte by byte:

method zstd 1.5.7 (65.24) zstd 1.6.0 (66.1) difference
-m8 1,580,337,235 1,580,337,235 identical, the same md5
-m86 1,577,370,290 1,577,370,290 identical, the same md5
-m8l (the default) 1,564,377,373 1,564,364,650 12,723 bytes smaller
-m86l (-xl) 1,543,778,182 1,543,757,457 20,725 bytes smaller

The cause is one fix in zstd: PR #5010, "compress:
preserve the reset LDM gear hash". The long distance matcher of 1.5.7 lost its hash after
every jump, so some long matches were missed. With the fix those matches are found again: the
compressed bytes change, the format does not. The same PR updates the determinism tests of
zstd.

Why it is not a problem. Every file comes out the same:

  • zstd 1.5.7 reads the archives of 1.6.0, and 1.6.0 those of 1.5.7 (t, x), on the same
    3.37 GB; the 65.24 release itself extracts, identical, the 66.1 archives in 12 kinds of
    -m8;
  • the decoder written in ZPAQL that every -m8 block carries reads both (p -verify, and
    zpaq 7.15 x -test, on the 3.37 GB);
  • on ARM 64 bit (the NAS binaries, under qemu) the new Neon code of zstd reads both, and writes
    archives that the x86 binary extracts.

The only visible effect is that a -m8l archive of 66.1 is not the same, byte by byte, as a
-m8l archive of 65.24 made from the same files. -m1...-m5 did not change.

Going back to zstd 1.5.7, should it ever be needed, is one cut and paste: the old block is
kept, to the byte, in zstd\1.5.7\zzstd_block.txt (cut and replace).

2. The serious ones: please read

These were present in the 65.25 development builds (not every one in its last builds). At least these are in the
released 65.24 too: r -kill, mysqlrestore, two runs on the same archive, zfsadd, the audit (and cloud, a -home
and zfsproxbackup in section 3). I did not look for all of them in the older versions: they can be there.

  • x ... -to could be ignored (Windows). With names that Windows changes while extracting
    (./data, or dir:1 from Linux), x a.zpaq ./data -to z:\out wrote into .\data, not
    into z:\out, with "all OK" and exit code 0. With -force it overwrote the files of today with the
    ones of the backup.
    w too, and the x of the tui. The same with -fixreserved, and on every system
    with -flat and -nopath.
    Extracting everything (x a.zpaq -to z:\out) was right, and so were the normal names (data, c:/data).
  • r ... -kill could empty the slave when the master could not be read: on *nix a master that is a symlink, on every
    system a path with .zfs in it (even inside a name, as data.zfs_old). Now it is an error, and nothing is touched.
    A master inside its slave could be deleted too: refused.
  • sftp rsync ... -kill without the final / (/backup/today) deleted in the folder above.
  • mysqlrestore with a new name could drop the original database. From MariaDB 13.1, mariadb-dump writes
    the DROP DATABASE line in a new way. mysqlrestore did not know it, so it did not rename it. With a dump made by
    a 13.1 client from an older server, mysqlrestore all.zpaq shop shop_copy dropped the live shop, made shop_copy,
    and ended with exit code 0. The dumps of a 13.1 server were refused instead (79676): those backups are good, and
    they can be restored now. If the first lines of a dump are not known, nothing is sent to the server (79694).
  • Two runs on the same archive, at the same time. When their own zpaqfranz a failed, mysqldump, proxvzdump
    and zfsbackup cut the archive back to the size it had before. They did it even when it had only been refused
    because another zpaqfranz was writing that archive: so they cut what the other one was writing. The other one
    ended with "all OK" and exit code 0, but the archive was damaged. Now the one that writes takes back its own
    version, under its lock (see part two). zfsproxbackup, zfsadd and (on *nix) cloud took no lock, and could
    write together with another run. Now the second one is refused (17278, exit code 2).
    If two jobs can overlap on one of your archives, run t on it.
  • mysqlrestore -force on a database that is there. A dump drops the database in its first lines. If the archive
    was damaged further on, or the dump had been cut when it was made, that came out when the database was already gone.
    Now the whole dump is read first: if it is not good, nothing changes (79696, 79697).
  • zfsadd, when a snapshot fails (a full disk, for example). The next snapshots were added all the same, after a
    version left half written: the archive was damaged (t ends with exit code 2), and the runs after it skipped the
    failed snapshot as "already in the archive". Now what it had written is taken back, zfsadd stops there (79848), and
    the next run starts again from that snapshot.
  • work proxmox audit: if the list of the secrets of the node could not be read, it was as if there were none,
    so they were not removed from the public part. Now there is no public part (79839, exit code 2). The private one is made.
  • A disk that got full during a backup: see section 3. Since then, an a with Franzen or
    -index on a full disk puts everything back as it was too.
  • q -frugal -kill (and the other commands that only have to leave out the junk) deleted it from the live disk.
    Now only work frugal -kill deletes.
  • Backups in a folder with .tmp or .franzen in its name failed, and with backup -chunk a folder named something.zpaq
    gave exit code 0 and parts with a wrong name (bk_00000001.zpaq.zpaq): the extension was looked for in the whole path.
  • a folder -norecursion (Windows), without the final \: no file was stored, with exit code 0.
    On every system, with -norecursion the -only masks found nothing.
  • a folder -nopath, with a folder written without any path and without the final /: the names were
    wrong (data/one.txt became dataone.txt). The data is there.
  • dir . . -xxhash (the same folder twice, or one inside another): a file was shown as the duplicate of itself.
    If you delete files from such a list, look at the paths. Two files that could not be read were "duplicates" too.
  • tui: the second extraction took the files of the first one again.
  • SFX: see section 4. The old module could damage the files extracted with -force, and say "all OK".

3. A disk that got full during a backup: check your backups

I found this while trying -copy. It is in every version I tried (65.12, 65.14, 65.16,
65.24), and in the 65.25 development builds up to 65.25z14.

What went wrong. When the disk got full during a backup:

  • that run said so (exit code 2), but the part it was writing, cut, was kept as a good one:
    testbackup said OK;
  • with free space again, the next backup gave a warning (exit code 1), and the ones after it
    ended with exit code 0;
  • but x could not extract what was stored after the cut part, even if it was all there.

On Linux (the other *nix were not tried) there was more. When the space ended in about the last
4 KB of the archive, a and backup ended with exit code 0 and an archive that is not good:
the error comes when the file is closed, and nobody looked at it.

Now the exit code is 2, and a backup stays as it was: the parts made by that run
are removed, and the index is put back (46339-46343). Free some space, and run it again. Nothing
is made of an archive that is not all written: no -copy, no -sfx, no hash.

A backup that already has a cut part. What comes after that part is read now.
l, t, x, a new backup and testbackup (which now looks at the parts too) end with a giant
DAMAGED ARCHIVE, the name of the part and what is wrong with it (46347-46350). mount says it
after the unmount. The exit code is never 0.

zpaqfranz testbackup w:\bak\pc                       is there a part that is cut, or not finished?
zpaqfranz x w:\bak\pc_????????.zpaq -to z:\out       the files of the last version

If you see it:

  1. do not delete anything, not even the cut part;
  2. extract (x) to another folder, and look at the files;
  3. start a new backup, with another name, and keep the old one.

Good to know:

  • what was stored only in the cut part cannot be extracted;
  • x and t can end with exit code 2 even if every file comes out right: the list of a version
    is missing, so it cannot be proved that nothing else is (03750);
  • m, consolidate and x -repack -all write the parts in a single file, which could not be
    read any more (they said OK). Now they refuse, and write nothing (46354). x -repack without
    -all makes a new archive, with the files of the last version;
  • Franzen: a part that is not finished is not read, nor is what comes after it, and every
    backup after it stopped ("part exists", exit code 2). Now, if it is the last part
    and what comes before it is whole, the next backup puts it aside: it becomes
    .franzen.spaz, it is not deleted. Its line is taken away from the _backup.txt, the index is
    made again, and the backup is done, with exit code 1 and a giant DAMAGED PART
    (46357-46371). a on a multipart puts its part aside too. Otherwise nothing is
    touched, and it stops with exit code 2, as before;
  • with an older version (tried with 65.24): put the cut part in another folder, and a file of
    0 bytes with its name in its place. x then reads what follows. Only without -key, and
    only if 66.1 says how many bytes of data are missing. If it says cut before its end, do not
    do it: it can make things worse.

Not only backup:

  • cloud: after one full disk the local archive was left half written, and it was uploaded like that. The
    next run crashed, even with free space, and x did not give the new files. Now the archive is put back as it was,
    and the next run goes on from there;
  • more archives in one run (zfsproxbackup with many guests, a -home): the one that did not fit was left half
    written, the next ones failed too, and each one was shown as OK: only the final exit code was 2. Now a failed
    one is put back as it was and reported, and the others are done.

4. The SFX modules

To make a self-extracting archive, zpaqfranz for Windows has two small executables inside its source (64 and 32 bit).
They used to be two blobs to be trusted. Not any more: in the folder zsfx there is everything to build them again,
identical, byte by byte, and to check that the ones inside zpaqfranz.cpp are really those. Just two commands:

build.bat
verify.bat c:\somewhere\zpaqfranz.cpp

SFX.md explains everything: the (public) compiler and its SHA-256, every switch, how to convert the modules and how to put them
into the source. There is no executable in the folder: the tools are built from their sources too.

The modules were fixed, and are smaller (64 bit: 321,024 => 275,456 bytes; 32 bit: 223,744 => 176,128):

  • -force on a longer file left its old tail: a damaged file, and "all OK";
  • a wrong password, a damaged archive or a full disk gave exit code 0. Now it is 2;
  • the arguments were read from freed memory: -sfxto, -sfxonly, -sfxnot... could not work, or crash;
  • -sfxto "z:\my folder": the spaces work;
  • the date shown is that of the version, written by hand, not a "compiled" date.

The self-extracting archives already made keep the old module. To have the new one, make them again (sfx).

5. -index with -wim and -tar

Windows. -index keeps the list of a multipart archive in a small file of its own. 65.24
refused it with the images (01949), because the state that -wim and ac -tar reuse from the
last run lives in the archive, in parts that -index lets you move away. Now that state is
written beside the index, in TWO new files (it is not possible to embed everything inside standard zpaq indexes):

  • <index>.X.wimx for the image of X: (-wim);
  • <index>.tarx for the table of -tar.

Each one is in clear, or encrypted as the index (-key), and is used only if it matches the
index, piece by piece. Otherwise it is ignored and the old way is taken, which reads more but
loses nothing (44072-44077, 64500-64503).

zpaqfranz a w:\c.zpaq c: -image -wim -index w:\c_idx.zpaq
zpaqfranz ac w:\pc.zpaq -tar -index w:\pc_idx.zpaq

6. Issues 385 and 386

  • Issue 385. -wim reads the $MFT to know what changed. When the list of pieces of the
    $MFT is not stored in its record (big or old volumes), -wim turned itself off (44028) and
    everything was read again: 137 GB at every run, on a Server 2019 of 200 GB. Now that list is
    read too (44071 with -verbose). On the way a
    latent defect was found: the extensions of the $MFT point to record 0, and were taken for
    records of their own, so pieces of the $MFT were skipped. The released versions were not
    hit (they stopped at 44028 before). Two new lines say what is going on: 43470 (VSS is making
    the copy, it can take a while) and 44067 (the state of the last run, from the archive).
  • Issue 386. x -tar gave back neither the times to 100 ns nor the security of a folder
    that has an alternate data stream, or is case sensitive, nor of the folders above it up to
    the root. They were made before the data, then skipped as "already there".

7. -timestamp, the same archive to the byte

With -timestamp, the same files now give the same archive, to the byte, run after run, with
the -lfast history too. The only thing that changed was the time a run took, stored in the
VFILE-info record of the history. With -timestamp it is not written (i -verbose shows -
for it; t never looked at it). Without -timestamp nothing changes.

8. Faster

  • -tar on Windows with -ssd: the metadata of the files (security, streams, EA) are read
    by 4 threads, about 2 times faster (on solid-state media). Without -ssd, one
    thread as before, about 2% faster. -t is for compression and does not change this.
  • a -turbo on long runs of zeros (disk images, preallocated files): no hash for a
    fragment of zeros, about 3 times faster on 2 GB of zeros. With -fragment 20 or more the
    threads split the work where the fixed cuts fall (before, hundreds of MB were cut by the
    main thread alone). The archives are the same. Where can you find long runs of zeros?
    Usually in "pumped" empty sectors/clusters.
  • x -stdout of a file not stored in order (its fragments shared with older data) uses the
    threads asked, not one: 6.5 s became 1.0 s on 14 blocks.

Measured against the version just before each change, on idle virtual machines (Fedora and Windows 11).
The gains depend a lot on your data: these are the cases where I found something to gain.

Command Gain
repack, many small versions up to -98% (Fedora), -92% (Windows)
l of an archive with -lfast, many parts up to -88% (Fedora), -78% (Windows, network share)
z and k, deep folders up to -97% (Fedora), -83% (Windows)
franzen (test and decrypt), many segments up to -71% (Fedora), -84% (Windows)
franzen -ssd, encrypt up to -54% (Windows)
zip -deflate -10% (Windows), -4% (Fedora)
cp of many small files -7% (network share), -3% (local), Windows

Something is a bit slower, because it is safer: for example r with files of 1.5 MB, about +7%. When cp on Windows
replaced big files it was +64% (6 files of 100 MB, in one of the first tests), because it writes a new file instead of going over the old one.
-space does as before.

9. The other fixes

Extraction, restore and images

  • Restore of an image with -image -ntfs -raw (Windows): the raw handler took the
    source letter, not the -to, so the restore could write on the wrong volume. Now the caller
    says what and where (46201-46202). Tried on a VM: before, Raw partition restore mode to E:
    (the source); now the clusters go on -to.
  • x -recover / xx: an existing file was overwritten without -force, and on Windows a
    longer one kept its old tail with "Hash OK". Now it behaves as x: not touched without
    -force (46206, exit code 1), erased first with it. -recover with -stdout or zip is
    refused (46203): it wrote files on the disk instead.
  • x -recover, files that cannot be opened or written: they were "OK". Now 46204-46205,
    exit code 2. The same for a write to stdout that fails.
  • zip -deflate and x -stdout of a file not in order with -datefrom/-dateto (and
    the other filters): they took the files left out too.
  • image -to x.vhd -force erased x.vhd before its checks, and lost it when they failed.
    A raw .vhd/.vmdk/.vhdx of a disk with 4096-byte sectors is refused (20065): the boot
    sector would be in the wrong place.
  • xc: -to the archive itself is refused (66591); the sizes with -resize are checked before
    writing (66592); a GPT on a bigger disk gets its copy at the real end (66593); a flush that
    fails is an error; the offsets of ReAgent changed once each.
  • ac -all: when the used clusters of a partition cannot be read and the whole partition
    is taken instead, the hash and the CRC went to the old entry.
  • ac -tar: the registry is saved right after the shadow copy, not after the scan (66558,
    66559), so the window of a hive changing is seconds, not minutes; the temporary file of EFS
    is never an existing one; the raw EFS is reused only if the file did not change; a listing of a
    folder that stops in the middle is reported (64498).
  • -wim:
    • an excluded file found two ways (by name and from the $MFT) was counted twice, so a
      block could look all excluded and be left out of the image;
    • the shadow copies are recognised only in System Volume Information (44078);
    • a read error no longer makes the next run reuse the zeros (44079$).

Adding and testing

  • pp -paranoid: a file on disk and not in the archive was "COMPLETED WITH WARNINGS" with
    exit code 0. Now 1. -verify outside a test counts too.
  • a -append -stdout: a name not found, or two files that become the same name, gave exit
    code 0. Now 1 and 2, and nothing goes to stdout.
  • An attribute changed (attrib +R, chmod) on a single file, with the same date and
    size: no version was made, the change was lost.
  • a -test / -verify: the test replaced the errors of the add (a file gone after the
    scan was "all OK"). Now the worse of the two counts.
  • A read that fails in the middle of a file (Windows) was taken for its end: the file was
    stored shorter. The exit code was already 2 (the sizes do not match); now it says why
    (46209), and it is 2 with -ignore too.
  • -copy that fails: the message names the destination, exit code 1.
  • a -append -index: when the two passes differ, the index is put back too.
  • *nix: a thread that cannot start does not block a for ever.
  • The sequential engine (xx, pp, -stdout, zip -deflate): the threads that cannot
    start are counted (46207, 46208), and the watchdog no longer empties the cache while the
    writer is still going.
  • The streaming format of zpaq (zpaq a -method s...) is not supported any more. x
    extracts it as before; every other command (t, l, a, zip, xx, p, pp, mount,
    dump...) stops at once with 46210 and exit code 2. Before, t called it damaged, zip
    wrote empty entries, and -stdout and -recover failed.

Backup

  • It is always done: a folder or a name that cannot be read is an exit code 1, not a stop
    (on *nix it was not even said). A _backup.txt that cannot be read, or is lost, is reported too.
  • The hash file keeps its algorithm: with -backupzeta on an MD5 file, the new lines made testbackup say
    ERROR on a good backup.
  • testbackup checks much more: the whole list of the parts, -range, -checktxt, the wrong key.
  • Windows: PROVA_???.zpaq and prova_001.zpaq are the same name (false errors of m, testbackup
    and consolidate -recover).
  • If testbackup says that some lines of the _backup.txt are missing (66855), this makes them again:
    consolidate bk/b -recover -md5 -force (or -xxh3: the first line of the _backup.txt says which one). Tried with
    MD5, on a backup without encryption.
  • x -index of a Franzen archive: the index is Franzen too. It was in clear.

Encryption

  • AES+Franzen with a key whose SHA-256 begins with a zero byte (one key in 256: prova-4
    is 00fdc611...): the key was taken for "no key" in four places.
    • The archive was made with the container marked "Franzen only" (FRANZEN), with AES
      inside. It worked anyway: the reader looks at the content, not at the mark.
    • With such a key, an add to an archive that really is Franzen only was accepted with "all
      OK", and the new version was written with AES inside it: unreadable, lost.
    • Now the key is a key. The new archives are marked FRENZEN, and an add to a Franzen only
      archive with a key is refused (43801).
    • The archives made before keep working, with a note (43818): for a FRANZEN with a key,
      the content says whether AES is inside, as the reader does. They are never written again.
    • Older versions read and extract the new FRENZEN ones, but refuse to add to them (43804, their own
      defect): to go on adding, use 66.1. With such a key, an add to an older archive asks for the Franzen
      password at once, if -franzen is not given.

MySQL and MariaDB (see also section 2)

  • mysqldump: if it cannot find out which tables are not transactional, it tries a second way (MySQL 5.0). If
    that fails too, each database is locked during its dump, and it says so (79691). Before, they were all dumped as InnoDB.
  • mysqlrestore only needs the client (mysql or mariadb), not mysqldump.
  • mysqlrestore works with a client that does not know the first line of the recent MariaDB dumps (the sandbox mode).
  • If a restore fails, and the new database cannot be dropped, it says so (79699). Before, it said that it was gone.
  • Windows: the mysql.exe beside mysqldump.exe is used first. Before, the first one found could be of another server.

Proxmox and ZFS (see also sections 2 and 3)

  • zfsadd, after something else was added to the archive with a: the snapshots made between the last zfsadd and
    that a were skipped, as "already in the archive". Now they are added. The snapshots that are skipped because they are
    older than the last one, and have no version, have a line of their own (79849).
  • The script of zfsrestore also ran zfs receive on the text of an echo: errors on the screen, but the restore was right.
  • zfsbackup -hashdeep: if the backup fails, its hashes are not stored.
  • work prox user: the line for the client is printed only if every step worked.
  • work prox start: it waits for about a minute (it could be 11), and a wrong port is refused.

Files that are replaced (cp, r, mc, zip, repack, m, password, x -repack, download...)

  • The new file is made beside the old one, which is replaced only when all is written. If something goes wrong, the old one is
    there. This needs the space for both: with -space it is written in place, as before.
  • zip -to, on a file that is already there, wants -force.

Hashes and checks

  • A read error in the middle of a file never gives a hash: before, hash, c, d, 1on1, dir... took the part they had read.
  • NILSIMSA was wrong over 256 MB.
  • sftp quick -ssd: a sample that cannot be downloaded is an error. There was a hash, and exit code 0.
  • d and 1on1 -kill with a weak hash ask for a captcha. Nothing else: it is up to you.
  • pakka, with a part that was cut, did not show a version.

Commands

  • dir: each folder has its own wildcard (dir *.bat x\*.yml), /age is in UTC and its number is
    checked, files are counted once; tree begins from its folder.
  • l: -range together with the other filters, -n counts the lines that are shown, -home does not count twice, and
    -orderby hash works. It now says how many lines it really shows (files shown): the hidden ones are not counted any more.
  • i: -stat -key and -verbose -range.
  • dirsize: -range, -only and -not work; on a damaged archive it is exit code 2.
  • tui: -all with relative paths, names that differ only for the case (Windows), relative folders in the tree.
  • ls: more in a script does not wait for a key, cd with a wildcard, paths between double quotes.
  • mc: F5 and F6 do not lose the file that is there; a folder cannot go inside itself, not even by a link;
    a starting folder that is not there is reported.
  • last, count, last2, compare2: no name that is not there, whole lines even if very long, wrong numbers refused.
  • work (getsize, fc, checkspace, big, resetacl, vss, frugal -all, probe, poke...) and drive say when
    something went wrong.
  • download takes a URL that ends with /.
  • version says the version of zstd and the default method (-m8l).
  • -mailprivacy: no name of files, folders and archives in the mail. Whoever stops halfway sends the mail anyway, with exit code 2.

Part two: for developers

1. zstd 1.6.0, how it is built

The block of zstd in the source is made by zstd\make_zzstd.py from the official
amalgamation (build/single_file_libs/combine.py on zstd-in.c without ZSTD_MULTITHREAD
and without the dictBuilder). Everything is put in namespace zzstd, the extern "C" blocks
are taken away, the system #include lines are moved out of the namespace, and every macro is
pushed and popped. Not a line of zstd is changed but two, both made by the script:

  • the ASan functions in extern "C" (65.20m, once by hand);
  • one cast, (U32)-MINMATCH, in the new Neon code of 1.6.0. Compiled as C++, -MINMATCH
    inside the braces of a U32 array is a narrowing error: the arm64 half of macOS and the NAS
    armv8 and cortex-a5x did not build. It is the same value C gives.

The block made again from 1.5.7 is the one of 65.24, to the byte. zstd\LEGGIMI.txt has the
steps. zstd\ldm_repro.c shows the difference of -m8l on public data, without zpaqfranz,
and zstd\issue_ldm_1.6.0.md is the question asked to the zstd developers.

2. SFX modules and building

  • The line that says where the modules come from is in the SFX section of zpaqfranz.cpp. After any change to the
    modules: build.bat, inject.bat, verify.bat (the folder zsfx).
  • With GCC 7.3.0, never use -flto for the 64 bit module. It is built without errors, and it is reproducible. But it crashes as soon as it starts.
  • With -pie the linker writes the name of the output inside the 64 bit module: it must be zsfx.exe.
  • zpaqfranz.exe has the path of its source inside: the same source in another folder gives another exe.
  • Names of files, folders and archives are printed with %Z, never with %s: that is how -mailprivacy finds them.
  • FRANZESITI: the end of file of a -stdin does not say whether the program that was sending the data ended well.
    This environment variable holds a list of files, one on each line. Each program in the pipe leaves its exit code in
    its file, before its end of file. At the end, a -stdin reads them: if one is not 0, or is not there, its version is
    taken back (46400, 46401), as with a full disk and under its own lock. mysqldump, proxvzdump and zfsbackup use it.
    Nobody cuts an archive from the outside any more.
  • The counters of the writes that failed are for the whole run. Each add() now starts from their current values. Commands
    that go on after an add() (zfsadd, a -home, cloud, the audit) call addeannulla(), which puts a failed one back
    at once.

3. Not tested, and known limits

  • Tried on real servers: Proxmox VE 9.2 (restores of virtual machines and containers on 7 storages: ZFS, LVM,
    LVM-thin, btrfs and folders, and from one to another), OpenZFS on Linux, MariaDB 11.8 (dump and restore, from Linux and from Windows), cloud to an
    SFTP server, the downloads of kickstart, the check of update (the signature and the version, not the installation).
  • Franzen with many parts: now verified, with 5000 parts (multipart and -chunk, with and without AES), on Linux
    and Windows 😄
  • MariaDB 13.1: a real one was not tried. Its new lines come from its source code, put in the dumps of an 11.8.
  • Not tested: the sending of a real mail, work vss without administrator rights, update from 65.24 to 66.1, the
    guests of a Proxmox cluster with more than one node, the lock of cloud on *nix. The review of work fat32 still
    has to be done ( I need some USB sticks )
  • A full disk on ZFS (a quota): tried with a and backup, and the archive goes back as it was, but the messages
    can say that it did not (46341, 66859, 66860). backup -chunk is not right yet.
  • The fallback to raw of ac -all (part one, section 9) is fixed by reading the source. It was not
    tried: it needs an NTFS partition whose used clusters cannot be read. I should find some broken USB stick.
  • Built and tested on Windows (64 bit, and 32 bit for the SFX tests), on Fedora (GCC 16, with the build of its
    package too) and on Debian 13 (Proxmox).
  • The SFX modules were rebuilt in different folders, and also with the compiler downloaded again from SourceForge:
    always identical. If you get something different, please open an issue. Streaming archives were not tried. I really do not care of streamed format.
  • autotest -m... still does not check the exit code of every command of its scripts. Not so important.
  • dirsize, without -force, does not compare accented capital letters. Stick to latin
  • ls -r of the root does not show what is under ./, and ls does not sort with /od and /os.
  • pakka does not read Franzen archives made of more than one part. This should be fixed in the future (for Catpaq)

Download zpaqfranz

Don't miss a new zpaqfranz release

NewReleases is sending notifications on new releases.