A child forge's own filesystem (#10856)

Everything a child forge writes is kept under <data>/children/<body id>. The forge checks whether that directory is a filesystem of its own: a mount whose mount point is exactly that path in /proc/self/mountinfo. The forge mounts nothing itself. Making that filesystem is the platform's job (#10851).

What the line means

Each child's line on /forges and on the terminal's Forges you sent screen (ctrl-k) ends with one of:

Requiring one: children.ownFilesystem

The setting is off by default. To turn it on, use one of:

While it is on, the forge does not start a child that has no filesystem of its own. This applies whether the child runs in a cell or in this forge's process. The forge reads the setting on every start, and a child that is already running is not stopped.

What the refusal says

The child's pages and its apps answer 503, text/plain, with one line:

kid was not started: its data is on the shared disk, not a filesystem of its own, and this forge requires one (children.ownFilesystem is on).

The boot skips that child and logs the same line as child forge not started.

Code: src/spawn/disk_mount.ts (reading the mounts), startRefused in src/spawn/host.ts, and launchSpecFor in src/spawn/cell.ts. Tests: test/disk-mount.test.ts.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs