summaryrefslogtreecommitdiff
path: root/make-bcache.c
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2011-04-15 13:22:09 -0700
committerKent Overstreet <koverstreet@google.com>2011-04-15 13:22:09 -0700
commit1a7ae034f6f10f69cc367c8085ececae081da828 (patch)
tree887aae97ee52ba6804eb8de198f9f73ed6343473 /make-bcache.c
parent0b4b6fe2d3d668ace37f44e5a2297bb0ab51dafe (diff)
New superblock fields for multiple cache devices
Diffstat (limited to 'make-bcache.c')
-rw-r--r--make-bcache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/make-bcache.c b/make-bcache.c
index adc90ac..b213f9e 100644
--- a/make-bcache.c
+++ b/make-bcache.c
@@ -76,6 +76,7 @@ int main(int argc, char **argv)
struct cache_sb sb = { .block_size = 8, .bucket_size = 0 };
uuid_generate(sb.uuid);
+ uuid_generate(sb.set_uuid);
while ((c = getopt(argc, argv, "CBU:w:b:")) != -1)
switch (c) {
@@ -129,6 +130,7 @@ int main(int argc, char **argv)
memcpy(sb.magic, bcache_magic, 16);
sb.version = backingdev ? CACHE_BACKING_DEVICE : 0;
sb.nbuckets = nblocks / sb.bucket_size;
+ sb.nr_in_set = 1;
uuid_unparse(sb.uuid, uuid);
do