From 701978abab52f1d3c86c2db596d32881513b2b83 Mon Sep 17 00:00:00 2001 From: GangCao Date: Fri, 10 Aug 2018 16:47:13 -0400 Subject: [PATCH] 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 Reviewed-on: https://review.gerrithub.io/421844 Tested-by: SPDK CI Jenkins Chandler-Test-Pool: SPDK Automated Test System Reviewed-by: Ben Walker Reviewed-by: Changpeng Liu --- lib/bdev/malloc/bdev_malloc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/bdev/malloc/bdev_malloc.c b/lib/bdev/malloc/bdev_malloc.c index 4d2b2b905..d1e9cb5be 100644 --- a/lib/bdev/malloc/bdev_malloc.c +++ b/lib/bdev/malloc/bdev_malloc.c @@ -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) {