code: plan9front

Download patch

ref: 4d872079d36939c3287b2968fbada7c4e4738762
parent: 9e79aaceba1b6350908e23145427ff2ce72f064c
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Jan 9 12:38:58 EST 2022

iostats: bind /srv into the namespace, its magic

programs that try to use /srv would choke when running
under iostats, because we intercepted operations on the
special, magic fd passing; we should instead give them
access to the real /srv.

--- a/sys/src/cmd/iostats.c
+++ b/sys/src/cmd/iostats.c
@@ -317,6 +317,7 @@
 		bind("#c/ppid", "/dev/ppid", MREPL);
 		bind("#e", "/env", MREPL|MCREATE);
 		bind("#d", "/fd", MREPL);
+		bind("#s", "/srv", MREPL|MCREATE);
 
 		if(chdir(buf) < 0)
 			sysfatal("chdir: %r");