lib/bdev/malloc: ingore the empty Malloc device set
In the case of user specified configuration file with the section [Malloc] only and no valid settings like NumberOfLuns, LunSizeInMB and BlockSize, just log an error message and keeps the initialization running. Change-Id: I567ff9163fc24f89520dc55462c26d3588154e50 Signed-off-by: GangCao <gang.cao@intel.com> Reviewed-on: https://review.gerrithub.io/421844 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
a421bcb14e
commit
701978abab
@ -471,7 +471,6 @@ static int bdev_malloc_initialize(void)
|
||||
BlockSize = spdk_conf_section_get_intval(sp, "BlockSize");
|
||||
if ((NumberOfLuns < 1) || (LunSizeInMB < 1)) {
|
||||
SPDK_ERRLOG("Malloc section present, but no devices specified\n");
|
||||
rc = EINVAL;
|
||||
goto end;
|
||||
}
|
||||
if (BlockSize < 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user