Before this patch super_blob id for blobstore was persisted only during spdk_bs_unload. If power fail occurred after creating and syncing blob, super_blob id was lost within blobstore. Lvol store metadata would be lost, if proper shutdown didn't occur in first SPDK instance run since creation of lvs. This fix changes setting super blob to be instantly persisted on disk in super block. Without affecting clean bit in super block. Change-Id: I578f1fc8717e2d7968ad506fa4dead7507a5e0b4 Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-on: https://review.gerrithub.io/398804 Reviewed-by: Maciej Szwed <maciej.szwed@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> |
||
---|---|---|
.. | ||
blob.c | ||
bs_dev_common.c | ||
Makefile |