diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-06-11 14:19:07 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-06-11 14:19:07 +0000 |
commit | 67bb0a2c7a9ae7b197932e5b3ff3ad48ee39eab5 (patch) | |
tree | 5fc4ec7fe87a36dae66d781c83979470892246df /sys/src/cmd/cwfs/main.c | |
parent | 54e72f3e9cd1e0ae35d14d12940f1b5baa69d031 (diff) |
cwfs: store newcache format option in config
Diffstat (limited to 'sys/src/cmd/cwfs/main.c')
-rw-r--r-- | sys/src/cmd/cwfs/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/src/cmd/cwfs/main.c b/sys/src/cmd/cwfs/main.c index 784bfcfbe..5a6f8186b 100644 --- a/sys/src/cmd/cwfs/main.c +++ b/sys/src/cmd/cwfs/main.c @@ -3,8 +3,6 @@ #include "io.h" #include "9p1.h" -extern int oldcachefmt; - Map *devmap; Biobuf bin; @@ -293,6 +291,7 @@ main(int argc, char **argv) formatinit(); machinit(); conf.confdev = "/dev/sdC0/fscache"; + conf.newcache = 0; ARGBEGIN{ case 'a': /* announce on this net */ @@ -318,7 +317,7 @@ main(int argc, char **argv) open("#c/cons", OWRITE); break; case 'C': /* use new, faster cache layout */ - oldcachefmt = 0; + conf.newcache = 1; break; case 'c': conf.configfirst++; |