Spdk/lib/blob
Mike Gerdts 9ea88fcb72 blob: refactor parent_id and allocate_all checks
The blob's parent_id and allocate_all examined and/or modified in a
two places bs_inflate_blob_open_cpl(). This transforms the two if
statements scattered around the function into a switch statement to make
it easier to understand how these two values are related.

Signed-off-by: Mike Gerdts <mgerdts@nvidia.com>
Change-Id: I2cff2d07a0089b52678035b2ece60db6a5f67a8e
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17178
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2023-03-28 03:57:35 +00:00
..
blob_bs_dev.c blob: Add translate_lba operation 2022-12-08 12:54:54 +00:00
blobstore.c blob: refactor parent_id and allocate_all checks 2023-03-28 03:57:35 +00:00
blobstore.h blob: defer unload until channel destroy done 2023-03-28 03:57:35 +00:00
Makefile so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
request.c blob: add IO channels for esnap clones 2023-03-28 03:57:35 +00:00
request.h blob: add IO channels for esnap clones 2023-03-28 03:57:35 +00:00
spdk_blob.map blob: hotplug new back_bs_dev 2023-03-28 03:57:35 +00:00
zeroes.c blob: Add translate_lba operation 2022-12-08 12:54:54 +00:00