IT lexicon › Infra & Ops › nullfs

nullfs

Infra & Ops På svenska → Updated: 2026-11-09

A filesystem that stores nothing at all and simply mounts an existing directory somewhere else in the tree.

It goes back to John Heidemann's research on stackable filesystems at UCLA in the early nineties, which found its way into 4.4BSD. The idea was that filesystems could be layered, each layer altering something on the way down. Nullfs is the layer that alters nothing — the example proving the mechanism works, which turned out to be the most useful of the lot.

On FreeBSD it is the backbone of jail management: the same ports tree or the same read-only base system can be mounted into a hundred jails without being copied. mount -t nullfs -o ro /usr/ports /jails/web/usr/ports is the whole trick. Linux solves the same problem with bind mounts, which arrived much later and without the research paper.

← Back to the lexicon