From 34834165e2b54dd6ac26babd1e9d0443f1f53ee4 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 1 Oct 2026 10:39:51 -0300 Subject: 9ns: under --mntgen the program also gets NINE_MNTGEN=1, so it can tell the registry from a mounted session $NINE_MOUNT was the mountpoint either way: under --mntgen the registry, each session at $NINE_MOUNT//; under --unix the session itself. A program working out its own session's directory (pardes's $PARDES_MOUNT for its panes) could not tell which without statting the mount. NINE_MNTGEN=1 now says so; an inherited one is dropped, so a 9ns nested in a registry's program is not taken for one. Co-Authored-By: Claude Opus 5.5 --- 9ns/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '9ns/README.md') diff --git a/9ns/README.md b/9ns/README.md index 7d6babe..236e0c4 100644 --- a/9ns/README.md +++ b/9ns/README.md @@ -122,7 +122,10 @@ be a single path component (not empty, no `/`, not `.` or `..`); an invalid `--name` is a usage error, an unusable derived name falls back to `9p`. With `--mount PATH` the name is simply PATH's last component. The program gets `NINE_MOUNT=` (replacing any inherited value, so a nested 9ns -overwrites it). +overwrites it). Under `--mntgen` it also gets `NINE_MNTGEN=1`: the +mountpoint is the registry, each session at `$NINE_MOUNT//` +(pardes's at `$NINE_MOUNT/pardes/`); without it the mountpoint is the +one session itself. An inherited `NINE_MNTGEN` is always dropped. ## 9proc-demo: a demo 9P server -- cgit v1.3