Skip to content
← Back to writing

November 12, 2026

Seven proofs before one pull request

8RAID went into the product on Thursday after seven rounds on a test VM, each one finding a fault in the last, alongside offline updates, a smaller update download and a restore that keeps your Samba logins.

The 8RAID pull request is 404 files and about 31,000 added lines, and I merged it on Thursday evening. I would not have merged anything that size on the strength of its tests alone, so the real work of the day was a series of seven proofs on a Debian VM, run against a driver and a set of screens that I did not yet trust.

The Convert to 8RAID dialog in a test VM, listing five data disks and two parity disks of 3 GiB each, with the line that nothing is copied and files stay where they are, a checkbox, and a box to type the array's name before the Convert button turns on.

What 8RAID is, as merged

8RAID is real-time parity, with the gloss "every write protected as it lands", and it sits beside SnapRAID and ZFS as the third kind of pool. Nothing is removed and SnapRAID boxes keep working. You choose data disks and one or two parity disks, there is nothing to schedule, and a failed disk's files stay readable while you replace it. The pull request carries the pool type, start at boot with an ordered stop, replacing or adding a disk, a parity check that runs after an unclean stop with no schedule to manage, disk spin-down, the cache and the Shelver behaving like Unraid's cache modes and mover, converting a SnapRAID array in place, and importing an array that came from Unraid. In the setup wizard 8RAID comes first and is preselected, and a healthy pool shows nothing beyond its name, its usage and its disks.

The driver itself was already in the image. That merged earlier in the day. The image build compiles it from a pinned commit of our public fork, checks the hash, signs it with the image module key, and fails the build if it does not compile. The GPL source ships inside the image, and a release now refuses to go out unless the fork carries a tag for that release.

The seven rounds

The first proof was on Wednesday evening and its faults were in the product around the driver. On Thursday the second proof showed those fixed, with batches B and C passing without a single hand workaround, and then it turned to the part I cared most about, converting a SnapRAID array to 8RAID without copying any data. Every convert failed with "Parity did not begin building" while the driver was in fact building parity. The code read the driver's state once, immediately after starting it, and gave up if the build had not shown up in that millisecond. Rolling back worked four times out of four, but a rollback with one data disk missing ended in a failure because the restored mount line demanded that disk.

The third proof found that converting an array with two parity disks never reached done, because a check before the second start accepted only the state "stopped" while the driver was in the very state it needs for a parity build. The fourth fixed that and found that an import whose mount step failed was not undone. The half-made pool stayed, recorded and started, building parity by itself, with no way to remove it.

The fifth found my favourite. A healthy pool of three same-size XFS data disks was refused on import, because its parity disk reads as a file system. Single parity is the XOR of the data disks, and the XOR of three identical XFS superblocks is itself a valid XFS superblock with a correct checksum. Two data disks pass, and by the same arithmetic any odd number fails. The sixth proof showed that fixed, along with three smaller faults in the import dialog.

The seventh found that the convert preflight refused an array the product's own adopt flow had just made, when a data disk formatted whole was as large as the parity disk. Adopt gives the parity disk a partition, and that partition is 1 MiB smaller than the whole disk (3,221,172,224 bytes against 3,221,225,472), so the check said the parity disk was too small. With that fixed, an array shaped like my NAS converted to done. That array has seven disks of identical size, three partitioned XFS data disks, two whole-disk XFS data disks 93 percent full, and two whole-disk ext4 parity disks holding real SnapRAID parity files. It checked with zero errors, gave a pulled whole-disk data disk back from parity, and came back after a reboot, with every checksum matching at every step.

I will be plain about one thing. The NAS's own shape never needed that last fix. It bit only when parity sat on a partition beside whole-disk data disks of the same size. The disks in these tests were 3 GiB, so no timing from them says anything about how long my NAS will take, and real spin-down is not exercised on virtual disks.

The dialog in the picture is what a customer sees. It lists the disks, says "Nothing is copied. Your files stay where they are.", and makes you tick a box and type the array's name before the button works. Cancelling before the parity wipe leaves every file system, every mount and the SnapRAID config unchanged. Rolling back after the wipe puts the array back on SnapRAID and starts a full sync.

Packs, offline updates and a smaller download

Three other changes merged on Thursday. A box can now be updated from one signed file, uploaded or found on a USB stick, through the same staging, trial boot and rollback as any update. That is for a box with no internet. The Nova models and the graphics-card pack are downloaded or imported separately, verified, and only then used, and an update brings its GPU pack before the restart. While specifying the update server's pack feed I noticed that a box without a licence was refused a GPU pack even for a security release. Unlicensed boxes always get security fixes, so that download now needs no token.

The third is the size of an update. Going from v2.5.1 to v2.5.2 downloaded 220.5 MB, but only 54.6 MB of that was changed system pieces, because the initrd (149.9 MB) and the kernel (14.0 MB) were always fetched whole. The initrd's headers are now stable and it is fetched in pieces, and an identical kernel is reused after verification. A continuous integration job builds two images with different version stamps and fails unless the changes-only download between them is under 100,000,000 bytes. That job is the measurement itself.

A restore that keeps the logins

That evening I proved the settings restore against a VM that I rolled back to a clean disk six times. A settings backup now carries each Samba user's account and password entry in encrypted form, and a restore recreates the accounts with the same user and group ids before it imports the passwords. Users signed in with their old passwords after a reinstall and restore, and a wrong password was refused. The password hashes appear nowhere in the bundle as plain text, which I checked by searching it. A two-drive btrfs cache was kept with the same UUIDs and 40 of 40 checksums, and nothing was formatted.

The first run failed in two places. On an 8RAID pool brought back by import, the kept cache mounted but could not be put in the write path, so its files did not appear. A settings import also put the old install's pool records over the live pool, and after a reboot the pool did not start. I fixed both and ran the same steps twice, once on the old build as a control and once on the new one, on the same disks. The control failed again. The new build left all ten record files identical before and after, the pool started by itself after a reboot, and the files were all there.

MemIndex 1.4.6

MemIndex 1.4.6 now ships only memory skills. I removed 13 workflow skills that were never memory features and added six slash commands for the real ones: import Jira, import reviews, import chats, distill, savings, and pin. Session start shows a compact branch panel under 2,000 bytes so it stays visible. On the hosting side, the cache on the Cloud Sync hub dropped from 15 minutes to 60 seconds, and I measured that a revoked key is now refused after a minute.