Spdk/include
Mike Gerdts c9b802ca49 lvol: add spdk_lvol_is_degraded
This is mostly a wrapper around spdk_blob_is_degraded(), but it also
performs a NULL check on lvol->blob. Since an lvol without a blob cannot
perform IO, this condition returns true.

The two callers of spdk_blob_is_degraded() in vbdev_lvol.c have been
updated to use spdk_lvol_is_degraded().

Change-Id: I11dc682a26d971c8854aeab280c8199fced358c3
Signed-off-by: Mike Gerdts <mgerdts@nvidia.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17896
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2023-05-09 17:58:11 +08:00
..
linux check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
spdk lvol: add spdk_lvol_is_degraded 2023-05-09 17:58:11 +08:00
spdk_internal usdt: add SPDK_DTRACE_PROBE variants that don't collect ticks 2023-05-09 17:58:11 +08:00
Makefile update Intel copyright notices 2022-11-10 08:28:53 +00:00