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> |
||
---|---|---|
.. | ||
Makefile | ||
vbdev_lvol_ut.c |