numam-spdk/test
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
..
app rpc: add default UNIX domain socket listen address 2017-11-13 14:57:49 -05:00
blobfs/rocksdb test/blobfs: add timing for rocksdb benchmarks 2017-09-20 19:33:50 -04:00
cpp_headers build: include spdk.app.mk in all app Makefiles 2017-11-15 17:57:07 -05:00
iscsi_tgt test: remove unused test code for iscsi hotplug. 2017-11-17 11:25:39 -05:00
lib event: Pollers must now be unregistered from the thread they run on. 2017-11-17 11:11:23 -05:00
lvol test/lvol: add friendly name specific tests 2017-11-17 18:24:08 -05:00
nvmf rpc: add default UNIX domain socket listen address 2017-11-13 14:57:49 -05:00
pmem rpc: add default UNIX domain socket listen address 2017-11-13 14:57:49 -05:00
unit iscsi and ut/iscsi: return code to fail of IG creation 2017-11-21 16:06:30 -05:00
vhost test/vhost: fix typo in spdk_vhost.sh 2017-11-21 13:20:13 -05:00
Makefile test: begin moving unit tests into test/unit 2017-06-16 16:43:48 -04:00
spdk_cunit.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00