+12
−0
+1
−1
+158
−0
+1
−0
Loading
spdk_bs_grow() requires unloading the blobstore, therefore it is basically combining bs load and init in a way that allows to change the size of blobstore. This provides a clean way to make sure that recreation of bs_dev (with new block count) results in proper updates in on-disk metadata and run-time. It has the obvious drawback of closing all blobs. This patch introduced spdk_bs_grow_live() that allows for run-time change of blobstore size. It has the following caveats: - bs_dev size has to be changed before calling it - relies on clean unload for updates of used clusters map When bs is not unloaded, then recovery path will handle increasing the size of used clusters map. Change-Id: I81f8d1ce5652601a7b6109379e319c1231b8415d Signed-off-by:Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19454 Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by:
Ben Walker <ben@nvidia.com>