Show HN: Fs-relay – Mount remote folders over HTTP 10x faster than s3fs (Go) jad...
Show HN @show
Show HN: Fs-relay – Mount remote folders over HTTP 10x faster than s3fs (Go) jadmadi.net · 3 points · 0 comments · HN thread
TL;DR Fs-relay is an open-source Go tool that mounts remote directories over standard HTTP/WebSockets using rootless Linux FUSE, and the post is a contributor's account of upstream fixes for its v0.2.0 release. The author claims benchmarks up to 10x faster than s3fs and fuse-nfs on tar unpacking, and describes work on POSIX locks for SQLite across mounts, startup validation, bounded unmount, and atomic self-update.
- fs-relay uses zero-copy kernel transfers (splice and copy_file_range) for large files, 1 MiB write-behind buffering, local read-only opens, and batched prefetching of small files and directories.
- Benchmark claims: unpacking a 27 MiB ansible.tar (5,868 files) took 15.47s on fs-relay versus 203.56s on s3fs and 107.89s on fuse-nfs; a 500 MiB archive took 9.78s versus 21.01s on s3fs and 36.13s on fuse-nfs.
- Server-side POSIX byte-range lock table keyed by HMAC-signed client ID plus kernel lock owner, aimed at making SQLite rollback-journal mode safe across two mounts; the author reports 200 concurrent rows committed with integrity_check ok on Linux 6.12 and SQLite 3.46.1.
- Fixes include draining write-behind buffers before unlock, guarding late lock grants, and bounded 2-second unmount falling back to lazy detach on SIGINT/SIGTERM.
- v0.2.0 adds a two-phase atomic self-update for the two companion binaries with SHA-256 verification and automatic rollback of the primary binary if the companion fails.
- The project is dual-licensed under MIT and the Waqf Digital Public License (WaqfDPL-1.0).
Discussion The thread has no comments yet, so there is no community discussion to summarize. The submission has 3 points and has not drawn any responses at the time of this digest.