summaryrefslogtreecommitdiff
path: root/sys/src/cmd
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-06-08 18:54:36 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2014-06-08 18:54:36 +0200
commit01b5ac14024a26f4f1771bc7027e146e86f9c2c3 (patch)
tree56d50d6f3fcb30894977c6c9aea4f650cd02fa3d /sys/src/cmd
parent3d12f4f408da568dcb9cb0ba802dc9824cbe26fd (diff)
iostats: add -C flag to enable mount cache
Diffstat (limited to 'sys/src/cmd')
-rw-r--r--sys/src/cmd/iostats/iostats.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/src/cmd/iostats/iostats.c b/sys/src/cmd/iostats/iostats.c
index e65c7c83b..b85e1d75e 100644
--- a/sys/src/cmd/iostats/iostats.c
+++ b/sys/src/cmd/iostats/iostats.c
@@ -48,8 +48,9 @@ main(int argc, char **argv)
char *dbfile, *s;
char buf[128];
float brpsec, bwpsec, bppsec;
- int type, cpid, fspid, n;
+ int type, cpid, fspid, n, mflag;
+ mflag = MREPL;
dbfile = DEBUGFILE;
ARGBEGIN{
@@ -59,6 +60,9 @@ main(int argc, char **argv)
case 'f':
dbfile = ARGF();
break;
+ case 'C':
+ mflag |= MCACHE;
+ break;
default:
usage();
}ARGEND
@@ -83,7 +87,7 @@ main(int argc, char **argv)
fatal("no working directory");
rfork(RFENVG|RFNAMEG|RFNOTEG);
- if(mount(p[0], -1, "/", MREPL, "") < 0)
+ if(mount(p[0], -1, "/", mflag, "") < 0)
fatal("mount /");
bind("#c/pid", "/dev/pid", MREPL);