summaryrefslogtreecommitdiff
path: root/sys/src/cmd/iostats.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2022-01-09 17:38:58 +0000
committerOri Bernstein <ori@eigenstate.org>2022-01-09 17:38:58 +0000
commit4d872079d36939c3287b2968fbada7c4e4738762 (patch)
treea69ac571145361e0526714b789f954bd9048f7f2 /sys/src/cmd/iostats.c
parent9e79aaceba1b6350908e23145427ff2ce72f064c (diff)
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.
Diffstat (limited to 'sys/src/cmd/iostats.c')
-rw-r--r--sys/src/cmd/iostats.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/cmd/iostats.c b/sys/src/cmd/iostats.c
index cd32239ff..156979b81 100644
--- a/sys/src/cmd/iostats.c
+++ b/sys/src/cmd/iostats.c
@@ -317,6 +317,7 @@ main(int argc, char **argv)
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");