+19
−17
Loading
This function should only be called for raid_bdev in 'configuring' state, so convert the 'if' statement that checks that to an assert. Also add an assert for the number of discovered base bdevs. Suggested-by:Jim Harris <james.r.harris@intel.com> Signed-off-by:
Artur Paszkiewicz <artur.paszkiewicz@intel.com> Change-Id: Ib2fdf2af64ff0e9b458af4070321d138508a3df8 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/473966 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>