From 442ee2303ea480281c9190aaa375c3f04c7c8116 Mon Sep 17 00:00:00 2001 From: Paul Luse Date: Tue, 8 Aug 2017 16:42:56 -0700 Subject: [PATCH] blobstore: fix issue with reading in superblobid from disk Completion routine for reading superblock was not updating the bs struct with the superblob id thus it would have failed to be persistent from the application's perspective. Change-Id: I4aa51ebe73315e9be7e08f82340b03f0e3836df7 Signed-off-by: Paul Luse Reviewed-on: https://review.gerrithub.io/373406 Tested-by: SPDK Automated Test System Reviewed-by: Ben Walker Reviewed-by: Daniel Verkamp --- lib/blob/blobstore.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/blob/blobstore.c b/lib/blob/blobstore.c index baa42cade..164bef2b2 100644 --- a/lib/blob/blobstore.c +++ b/lib/blob/blobstore.c @@ -1359,6 +1359,7 @@ _spdk_bs_load_super_cpl(spdk_bs_sequence_t *seq, void *cb_arg, int bserrno) ctx->bs->pages_per_cluster = ctx->bs->cluster_sz / sizeof(struct spdk_blob_md_page); ctx->bs->md_start = ctx->super->md_start; ctx->bs->md_len = ctx->super->md_len; + ctx->bs->super_blob = ctx->super->super_blob; /* Read the used pages mask */ mask_size = ctx->super->used_page_mask_len * sizeof(struct spdk_blob_md_page);