summaryrefslogtreecommitdiff
path: root/make-bcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'make-bcache.c')
-rw-r--r--make-bcache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/make-bcache.c b/make-bcache.c
index 2db48de..58fe674 100644
--- a/make-bcache.c
+++ b/make-bcache.c
@@ -104,6 +104,7 @@ void write_sb(char *dev, struct cache_sb *sb)
sb->first_bucket = (23 / sb->bucket_size) + 1;
uuid_unparse(sb->uuid, uuid);
uuid_unparse(sb->set_uuid, set_uuid);
+ sb->csum = csum_set(sb);
if (sb->nbuckets < 1 << 7) {
printf("Not enough buckets: %ju, need %u\n",