3735f2d08e
Three checks are added to options passed to spdk_bs_init, with appropriate errors returned: - whether any of the options is set to 0 - device size has to be bigger than cluster size - pages reserved for metadata exceed total number of clusters Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: Idee3c194b653e737ec7c7a768f1973ff72452c5b Reviewed-on: https://review.gerrithub.io/379676 Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>