summaryrefslogtreecommitdiff
path: root/sys/src/cmd/cwfs/con.c
diff options
context:
space:
mode:
authoraiju <aiju@phicode.de>2011-05-07 23:33:27 +0000
committeraiju <aiju@phicode.de>2011-05-07 23:33:27 +0000
commit9e6a36ccfc21d3d37b5f07e30ac10f52076cc7bd (patch)
tree7683c9e0016b7ee059e7166bdd397f3251e59973 /sys/src/cmd/cwfs/con.c
parentaa623e87cf343b345ba87296d53710ea620212e4 (diff)
added 'chatty' command to cwfs
Diffstat (limited to 'sys/src/cmd/cwfs/con.c')
-rw-r--r--sys/src/cmd/cwfs/con.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/src/cmd/cwfs/con.c b/sys/src/cmd/cwfs/con.c
index 0a7aa2134..41fe43142 100644
--- a/sys/src/cmd/cwfs/con.c
+++ b/sys/src/cmd/cwfs/con.c
@@ -740,11 +740,22 @@ cmd_files(int, char *[])
print("%ld out of %ld files used\n", n, conf.nfile);
}
+void
+cmd_chatty(int argc, char *argv[])
+{
+ if(argc < 2) {
+ print("cmd_chatty: usage: chatty n\n");
+ return;
+ }
+ chatty = atoi(argv[1]);
+}
+
static void
installcmds(void)
{
cmd_install("allow", "-- disable permission checking", cmd_allow);
cmd_install("cfs", "[file] -- set current filesystem", cmd_cfs);
+ cmd_install("chatty", "n -- set chattiness", cmd_chatty);
cmd_install("clean", "file [bno [addr]] -- block print/fix", cmd_clean);
cmd_install("check", "[options]", cmd_check);
cmd_install("clri", "[file ...] -- purge files/dirs", cmd_clri);