git: 9front

Download patch

ref: 2864593614eaf59e8e9f94d5566e5a65f01eaab0
parent: 2e37a585915f625662fcde423db330ad98c0617b
author: aiju <aiju@phicode.de>
date: Sat May 7 19:33:27 EDT 2011

added 'chatty' command to cwfs

--- a/sys/src/cmd/cwfs/con.c
+++ b/sys/src/cmd/cwfs/con.c
@@ -740,11 +740,22 @@
 	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);
--