Repository navigation
Cairn 0.1.33
A changing file no longer holds unrelated uploads back, and status names the file still waiting. The server also avoids repeatedly reading chunks it has already verified.
This is early software. Keep another copy of anything you put through it.
Linux (static), the client on each device, cairn-0.1.33-linux-x86_64 or, on ARM64, cairn-0.1.33-linux-aarch64, and the server, x86_64, on one machine:
sha256sum -c --ignore-missing cairn-0.1.33.sha256
install -D -m 755 cairn-0.1.33-linux-x86_64 ~/.local/bin/cairn # ARM64: cairn-0.1.33-linux-aarch64
sudo install -m 755 cairn-0.1.33-linux-x86_64-server /usr/local/bin/cairn-server
macOS: unpack cairn-0.1.33-macos-universal.app.tar.gz (Cairn.app) and cairn-0.1.33-macos-universal-tray.app.tar.gz (Cairn Tray.app) into ~/Applications; README.md has the launchd agent for Cairn.app. Windows: put cairn-0.1.33-windows-x86_64.exe and cairn-0.1.33-windows-x86_64-tray.exe in a folder of their own as cairn.exe and cairn-tray.exe. cairn-0.1.33.sha256 is every file's SHA-256, and update.json the signed list of this release's files that every installed copy checks.
Android 11 and later: open cairn-0.1.33-android.apk on the phone, and install it over the app to update it; the app's manual shows each step. It does not update itself. Every APK of the app is signed by the same key, its certificate's SHA-256 dc981e26f3084defacb05268103e31ba30eb7cd6c01734ae9f19742f56009006, which apksigner verify --print-certs cairn-0.1.33-android.apk shows; Android installs an update only when that key signed it.
Every file is at https://cairn.storage/download/0.1.33.html and in GitHub's release v0.1.33, each with its SHA-256.
The server has changed in this release: upgrade it before the clients.
Changes in 0.1.33
Fixed:
- A file changed while being uploaded holds back its own operations and those that depend on them.
The rest of the batch is committed, including unchanged files sharing its chunks. The changed file
stays dirty for a fresh scan; hard links, directory moves, staged swaps and notes remain consistent. - Each upload that finds a file changed names its path, with control characters and invalid bytes escaped.
A sync that exhausts its rounds names the last changing file. Status keeps the upload's path across
restarts and paused runs until a sync settles.
Changed:
- On Unix, missing-chunk queries reuse a successful verification for at most an hour while the chunk's
identity, size and timestamps match, saving repeated reads of already uploaded data. Changed chunks
are checked again and damaged ones still count as missing so a good upload replaces them. Downloads
and fsck always verify bytes. Damage that changes no metadata can wait until verification expires
before a missing-chunk query discovers it.