---
title: "A FUSE server for our in-house storage backend"
description: "Jane Street built an OCaml-native FUSE library, implementing the protocol directly instead of using blocking libfuse via FFI, and used it to expose Depot, its in-house object store, as a read-only POSIX filesystem for research workloads."
url: "https://swe.quest/articles/a-fuse-server-for-our-in-house-storage-backend-496f3dfce1bb1501"
canonical: "https://blog.janestreet.com/linux-engineering-depot-fuse-index/"
source: "Jane Street Tech Blog"
published: "2026-10-01"
difficulty: "hard"
kind: "Case study"
reading_minutes: 6
tags: ["storage-systems","functional-programming","linux","performance"]
---

# A FUSE server for our in-house storage backend

A post on [Jane Street Tech Blog](https://swe.quest/sources/jane-street.md), published 2026-10-01, 6 min read, Case study. Original: [https://blog.janestreet.com/linux-engineering-depot-fuse-index/](https://blog.janestreet.com/linux-engineering-depot-fuse-index/)

## Summary

Jane Street built an OCaml-native FUSE library, implementing the protocol directly instead of using blocking libfuse via FFI, and used it to expose Depot, its in-house object store, as a read-only POSIX filesystem for research workloads. Pitfalls included sparse protocol documentation, handled by capturing real libfuse traffic as serializer test data, and /dev/fuse requiring exactly one message per read()/write() syscall, which ruled out standard libraries that retry partial writes. Mapping Depot semantics onto POSIX meant shortening names up to 7,000 characters to UNIX-compatible aliases and keying inodes by access path so multiply-referenced bundles look like separate directories. Throughput rose from ~30 MiB/s to 1.3 GiB/s by allowing concurrent reads so kernel readahead could work, and by passing buffers directly instead of copying through OCaml strings, which had caused 92% of allocations.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Storage systems](https://swe.quest/tags/storage-systems.md) (Infrastructure)
- [Functional programming](https://swe.quest/tags/functional-programming.md) (Languages)
- [Linux](https://swe.quest/tags/linux.md) (Infrastructure)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- FUSE basics
- POSIX filesystem semantics ([easy posts on Storage systems](https://swe.quest/tags/storage-systems.md?difficulty=easy))
- OCaml Async ([easy posts on Functional programming](https://swe.quest/tags/functional-programming.md?difficulty=easy))
- Linux syscalls ([easy posts on Linux](https://swe.quest/tags/linux.md?difficulty=easy))

## Keywords

FUSE, Depot, OCaml, libfuse, Async, /dev/fuse

## Related posts

- [Building fast filesystems for VMs](https://swe.quest/articles/building-fast-filesystems-for-vms-c974511fa7175ffd.md): Modal · 2026-10-16 · Hard · 9 min read · Storage systems, Virtualization, Performance engineering, Linux, Sandboxing & isolation
  Modal replaced virtio-fs with a custom virtio-blk backend, ImageFS-blk, for its VM Sandboxes.
- [Speeding up Deployments with Lazy Image Streaming](https://swe.quest/articles/speeding-up-deployments-with-lazy-image-streaming-e38be965e3d7f740.md): Replit · 2023-09-06 · Medium · 8 min read · Containers, Performance engineering, Linux, Deployment, Storage systems
  Replit cut cold-boot times for large Deployment container images from 3-4 minutes to under 30 seconds by lazily streaming images through a FUSE filesystem instead of pulling and unpacking every layer up front.
- [What the interns have wrought, 2024 edition](https://swe.quest/articles/what-the-interns-have-wrought-2024-edition-b9d6cc4b73c67320.md): Jane Street Tech Blog · 2024-08-26 · Medium · 12 min read · Functional programming, Performance engineering, Debugging, Event-driven architecture, Analytics & OLAP
  Three 2024 Jane Street intern projects get a technical walkthrough.
- [AgentFS with FUSE: SQLite-backed agent state as a POSIX filesystem](https://swe.quest/articles/agentfs-with-fuse-sqlite-backed-agent-state-as-a-posix-filesystem-5f39c709b604ee45.md): Turso · 2025-12-08 · Medium · 7 min read · AI agents, SQLite, Linux, Storage systems, Rust
  AgentFS adds an \`agentfs mount\` command that exposes its SQLite-backed agent filesystem as a real POSIX filesystem via Linux FUSE.
- [The File System API with Origin Private File System](https://swe.quest/articles/the-file-system-api-with-origin-private-file-system-d365ac14632ecee7.md): WebKit · 2022-02-14 · Medium · 6 min read · Browsers, JavaScript, Frontend
  WebKit now supports the File System Standard's origin private file system, a per-origin sandboxed storage area where web apps can create, read, write, move, enumerate and delete files and directories.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
