blob: initialize super_blob and bstype during load
A recent patch did some refactoring on how the superblock is written out - it introduced a bug where on load we would write out INVALID for super_blob id and a null bstype when clearing the clean bit. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I1d6256e35030645b3e8fda83bfe0f74aeb635733 Reviewed-on: https://review.gerrithub.io/383129 Reviewed-by: Maciej Szwed <maciej.szwed@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
f97c8b3142
commit
e739a50f48
@ -1728,6 +1728,8 @@ _spdk_bs_load_super_cpl(spdk_bs_sequence_t *seq, void *cb_arg, int bserrno)
|
||||
return;
|
||||
}
|
||||
|
||||
ctx->bs->super_blob = ctx->super->super_blob;
|
||||
memcpy(&ctx->bs->bstype, &ctx->super->bstype, sizeof(ctx->super->bstype));
|
||||
ctx->super->clean = 0;
|
||||
_spdk_bs_write_super(seq, ctx->bs, ctx->super, _spdk_bs_load_write_super_cpl, ctx);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user