20c74e0c71
Always when creating a snapshot, new blob is created. That blob is explcitly set as thin provisioned with size of the original blob in _spdk_bs_snapshot_origblob_open_cpl(). Thus it should always contain empty cluster map, as API user has to interaction with it yet. As sanity check for debug builds, verification if all clusters are 0's is added. This empty cluster map is later swapped into the original blob in _spdk_bs_snapshot_swap_cluster_maps(). Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I4b935c0cf08917e9ad7b9bbedac4781890626eec Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478974 Community-CI: SPDK CI Jenkins <sys_sgci@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> |
||
---|---|---|
.. | ||
blob_bs_dev.c | ||
blobstore.c | ||
blobstore.h | ||
Makefile | ||
request.c | ||
request.h | ||
zeroes.c |