This function was a bit cluttered so simplify it. Also, it was assuming nbd module was loaded into the kernel prior running it - this could silently fail the nbd_all[@] setup in case it wasn't. Always attempt to load nbd driver before the setup and fail hard if the driver is not in place. Signed-off-by: Michal Berger <michal.berger@intel.com> Change-Id: I5884973944eae3e827eaafec16ba72e2cb4f70e7 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14994 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Pawel Piatek <pawelx.piatek@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> |
||
---|---|---|
.. | ||
bdevio | ||
bdevperf | ||
bdev_raid.sh | ||
blockdev.sh | ||
Makefile | ||
nbd_common.sh | ||
nonarray.json | ||
nonenclosed.json |