Spdk/lib
Shuhei Matsumoto 92ef1a64ec iscsi and ut/iscsi: return code to fail of IG creation
spdk_iscsi_init_grp_create_from_configfile() returns 0 even if
creating an initiator group (IG) is failed due to empty netmask or
initiator name. This will be unexpected behavior for end users.
Hence change the return code from 0 to -ENVAL for this failure.

Besides do the following.

Change other error return codes in the function by using errno too.

Current IG don't have any UT code in repository. UT code to confirm
this fix is also submitted.

Change-Id: Ic918feb5c6a3e772b325664d881b2673b553a217
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/384408
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
2017-11-21 16:06:30 -05:00
..
bdev lvol: add unmap and write zeros support 2017-11-21 13:28:22 -05:00
blob blobstore: add unmap and write zeros support 2017-11-21 13:28:22 -05:00
blobfs blobfs: Add conf parse for blobfs. 2017-11-15 18:03:00 -05:00
conf log: Use SPDK_ERRLOG in lieu of fprintf(stderr 2017-05-09 11:28:28 -07:00
copy event: Pollers must now be unregistered from the thread they run on. 2017-11-17 11:11:23 -05:00
cunit include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
env_dpdk pci/dpdk: use rte_eal_dev_attach/detach for DPDK 17.11-rc3 2017-11-15 17:52:05 -05:00
event event/subsystem: fix subsystem init failure handling 2017-11-20 19:28:44 -05:00
ioat copy: return 0 on success and appropriate errno on failure 2017-09-25 13:56:29 -04:00
iscsi iscsi and ut/iscsi: return code to fail of IG creation 2017-11-21 16:06:30 -05:00
json json: add function to write UTF-16LE strings 2017-07-12 18:12:52 -04:00
jsonrpc log: rename SPDK_TRACELOG to SPDK_DEBUGLOG 2017-08-29 13:25:58 -04:00
log log: Create a separate implementation file for common log flag operations. 2017-11-14 15:53:37 -05:00
lvol lvol: fix lvol store load on lvols load fail 2017-11-15 18:05:09 -05:00
nbd nbd: do not free spdk_nbd_disk with io outstanding 2017-11-10 17:00:58 -05:00
net net&iscsi: force overwrite "*" and "[*]" by wildcard 2017-11-14 15:44:40 -05:00
nvme nvme: normalize PCI addresses before comparing 2017-11-16 18:17:09 -05:00
nvmf nvmf: Fix the bug when destroy rdma queue pair. 2017-11-20 16:48:15 -05:00
rocksdb rpc: remove rpc subsystem 2017-11-10 17:00:58 -05:00
rpc rpc: only unlink unix domain socket if *we* have created it 2017-11-20 19:30:04 -05:00
scsi event: Pollers must now be unregistered from the thread they run on. 2017-11-17 11:11:23 -05:00
trace trace: Move trace flags to separate implementation file 2017-11-15 18:57:12 -05:00
ut_mock test/mock: add pthread_self 2017-09-19 17:15:15 -04:00
util io_channel: change return type of spdk_channel_msg 2017-11-17 11:25:14 -05:00
vhost vhost: clarify some error messages 2017-11-17 19:18:30 -05:00
Makefile lvol: Logical volume implementation 2017-09-14 19:30:54 -04:00