+29
−10
Loading
Any errors before writing out super block are fine. Meanwhile errors after, would require writing to super block again with prior size. If not possible again, handling it would become complex. Avoid the error rather than trying to change the super block/metadata format or adding second persistent step. This patch creates a bit pool and mask for used_clusters, so that it can be used once super block is persisted. Signed-off-by:Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I554cb4ba078a5e97584afdcc17e9a40b4bdcd672 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19793 Reviewed-by:
Jim Harris <jim.harris@samsung.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com>