diff options
Diffstat (limited to '9ns/src/main.zig')
| -rw-r--r-- | 9ns/src/main.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/9ns/src/main.zig b/9ns/src/main.zig index eac0a5e..86763a7 100644 --- a/9ns/src/main.zig +++ b/9ns/src/main.zig @@ -38,7 +38,8 @@ const usage_text = \\ --no-direct-io let the kernel cache file pages (trusts stat length) \\ --debug trace FUSE and 9P operations on stderr \\ --help, --version - \\PROGRAM defaults to $SHELL (else /bin/sh). The mountpoint is exported as $NINE_MOUNT. + \\PROGRAM defaults to $SHELL (else /bin/sh). The mountpoint is exported as $NINE_MOUNT, + \\and under --mntgen NINE_MNTGEN=1 says it is the registry, a session at $NINE_MOUNT/<service>/<name>. \\Default name: --unix PATH -> basename of PATH without .sock/.9p/.socket; \\--tcp IP:PORT -> tcp-IP-PORT (':' becomes '-'); --spawn CMD -> basename of its \\first word; --fd N -> fdN; 9p when nothing usable comes out of that. @@ -391,6 +392,7 @@ fn runMntgen(init: std.process.Init, envp: [*:null]const ?[*:0]const u8, cfg: Co .uid = uid, .gid = gid, .max_read = bridge.max_write, + .mntgen = true, }) catch return own_failure; bridge.serveMntgen(gpa, child.fuse_fd, stop_fd, .{ |
