+7
−0
Loading
spdk bdevs can change their size in run time, so far there was no way for bs_dev to change its size too without re-creating it. Blobstore size in general is determined from size written down in super block. Size of bs_dev is used in following cases: - initializing blobstore (therefore will become super->size) - loading blobstore (to check if super->size is not larger) - growing blobstore (combines two of the above) - parsing/writing out super block when super->size is 0 Last one is for compatibility with old versions of blobstore. This effectively means bs_dev size is not used in run-time, changing it will not affect blobstore even after reloads. Either way re-creating bs_dev already changed its size. This patch proposes adding interface that will allow to change the bs_dev size in run-time, and later in the series add a way to grow blobstore without reloading it. There is no need to add a way to revert the bs_dev size. All error handling for changes in super->size is done in blobstore. Signed-off-by:Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I3d7872d91f3b24d40976b4a8c64df860ddf642ae Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19453 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com> Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Community-CI: Mellanox Build Bot Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com>