Spdk/lib/iscsi
Shuhei Matsumoto c512303c30 iscsi: Don't ignore wrong value of parameters at initialization
In the current implementation, even if global parameters in the config file
are wrong, they are ignored and default values are applied.

Now JSON config file is under development and is a good chance to break with
past and change to reject wrong parameters.

This patch add verify() function into spdk_iscsi_initialize_iscsi_globals().

Besides, this patch fixes the return code of iscsi_initialize_global_params().

Change-Id: I708a1537746fe6ce22c36d1442f7eaf2a201830e
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/406021
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2018-05-04 17:45:48 +00:00
..
acceptor.c io_channel: add return value to pollers 2018-03-13 11:16:20 -04:00
acceptor.h iscsi: login poller per portal and portal cache 2017-10-06 17:00:45 -04:00
conn.c iscsi: close connection array shm file descriptor 2018-04-23 16:15:37 +00:00
conn.h lib/iscsi: Remove spdk_iscsi_conn_fn in conn 2018-03-07 10:14:17 -05:00
init_grp.c iscsi: Remove all uses of strncpy 2018-04-11 10:23:09 -04:00
init_grp.h iscsi: Change function names of iSCSI subsystem configuration 2018-03-09 13:52:04 -05:00
iscsi_rpc.c rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
iscsi_subsystem.c iscsi: Don't ignore wrong value of parameters at initialization 2018-05-04 17:45:48 +00:00
iscsi.c iscsi: do static initialization of globals that allow it 2018-04-12 11:26:44 -04:00
iscsi.h iscsi: Add the param MinConnectionPerSession to iSCSI options 2018-03-16 18:22:17 -04:00
Makefile build: remove $(ENV_CFLAGS) where not necessary 2018-01-03 12:05:59 -05:00
md5.c astyle: enforce braces around single-line statements 2017-12-11 11:19:32 -05:00
md5.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
param.c iscsi: Change the type of some negotiation params from uint32_t to bool 2018-03-14 13:41:22 -04:00
param.h include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
portal_grp.c iscsi: Remove all uses of strncpy 2018-04-11 10:23:09 -04:00
portal_grp.h iscsi: Change function names of iSCSI subsystem configuration 2018-03-09 13:52:04 -05:00
task.c scsi, iscsi: move task->parent to iSCSI task 2018-01-05 00:01:37 -05:00
task.h scsi, iscsi: move task->parent to iSCSI task 2018-01-05 00:01:37 -05:00
tgt_node.c iscsi: Check the combination of CHAP params for discovery before applied 2018-03-09 13:52:04 -05:00
tgt_node.h iscsi: Check the combination of CHAP params for discovery before applied 2018-03-09 13:52:04 -05:00