summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2011-09-01 14:37:48 -0700
committerKent Overstreet <koverstreet@google.com>2011-09-01 14:37:48 -0700
commitd1bc71ca43adea3d6b21981958fd700303c77199 (patch)
treeaadd95226625001407ae25d7091725be41b3a836
parenta19eab52397a1d2637a928c51920708f3dcb824b (diff)
The --writeback switch did nothing; fixed
-rw-r--r--make-bcache.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/make-bcache.c b/make-bcache.c
index ca03743..2c31147 100644
--- a/make-bcache.c
+++ b/make-bcache.c
@@ -73,13 +73,14 @@ void usage()
int writeback;
-struct option opts[7] = {
- { "cache", 0, NULL, 'C' },
- { "bdev", 0, NULL, 'B' },
- { "bucket", 1, NULL, 'b' },
- { "block", 1, NULL, 'w' },
- { "writeback", 0, &writeback, 0 },
- { "help", 0, NULL, 'h' },
+struct option opts[] = {
+ { "cache", 0, NULL, 'C' },
+ { "bdev", 0, NULL, 'B' },
+ { "bucket", 1, NULL, 'b' },
+ { "block", 1, NULL, 'w' },
+ { "writeback", 0, &writeback, 1 },
+ { "help", 0, NULL, 'h' },
+ { NULL, 0, NULL, 0 },
};
void write_sb(char *dev, struct cache_sb *sb)