Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions lib/blob/blobstore.c
Original file line number Diff line number Diff line change
Expand Up @@ -10306,6 +10306,13 @@ bs_grow_live_load_super_cpl(spdk_bs_sequence_t *seq, void *cb_arg, int bserrno)

dev_size = ctx->bs->dev->blockcnt * ctx->bs->dev->blocklen;
total_clusters = dev_size / ctx->super->cluster_size;
/*
* If the metadata page size is not set, then it means that the blobstore was created with an older version of SPDK.
* In that case, we can assume that the page size is equal to SPDK_BS_PAGE_SIZE, since that's what it was in older versions.
*/
if (ctx->super->md_page_size == 0) {
ctx->super->md_page_size = SPDK_BS_PAGE_SIZE;
Comment thread
abhilashshetty04 marked this conversation as resolved.
}
Comment thread
abhilashshetty04 marked this conversation as resolved.
Comment thread
abhilashshetty04 marked this conversation as resolved.
used_cluster_mask_len = spdk_divide_round_up(sizeof(struct spdk_bs_md_mask) +
spdk_divide_round_up(total_clusters, 8),
ctx->super->md_page_size);
Expand Down
Loading