Spdk/lib/iscsi
Shuhei Matsumoto f35f395b82 iscsi/rpc: Adjust format of bdev_name_id_pair between dump and construct
JSON format of bdev_name_id_pair is different between
construct_target_node() and get_target_nodes().

construct_target_nodes() uses the following format:

    "lun_ids": [
      1
    ],
    "bdev_names": [
      "Malloc0"
    ]

get_target_nodes() uses the following format:

    "luns": [
      {
        "lun_id": 0,
        "bdev_name": "lvs_1/lbd_1"
      },
    ]

The second format is better than the first format. Hence unify to
the second format.

Change-Id: If097e41ada0f2fe3754691cee0a0774db97c4ebb
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/399993
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-02-21 15:07:48 -05:00
..
acceptor.c net, iscsi: add struct spdk_sock abstraction 2018-02-12 12:30:39 -05:00
acceptor.h iscsi: login poller per portal and portal cache 2017-10-06 17:00:45 -04:00
conn.c net: remove ability to override default net_framework 2018-02-21 12:40:30 -05:00
conn.h net, iscsi: add struct spdk_sock abstraction 2018-02-12 12:30:39 -05:00
init_grp.c iscsi&rpc: Add new initiator information to an existing initiator group 2018-02-15 11:28:19 -05:00
init_grp.h iscsi&rpc: Add new initiator information to an existing initiator group 2018-02-15 11:28:19 -05:00
iscsi_rpc.c iscsi/rpc: Adjust format of bdev_name_id_pair between dump and construct 2018-02-21 15:07:48 -05:00
iscsi_subsystem.c iscsi: Unify the ordering of PG create_op between conf-file and JSON-RPC 2018-02-06 10:54:42 -05:00
iscsi.c iscsi: put spdk_iscsi_conn_write_pdu() in lib/iscsi/conn.c 2018-01-22 23:22:17 -05:00
iscsi.h iscsi: remove flush timeout 2018-01-22 13:37:31 -05: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: remove errno lookups for allocations 2017-12-29 13:48:29 -05: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 net, iscsi: add struct spdk_sock abstraction 2018-02-12 12:30:39 -05:00
portal_grp.h net, iscsi: add struct spdk_sock abstraction 2018-02-12 12:30:39 -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 net: add sock.h 2018-02-08 12:05:54 -05:00
tgt_node.h iscsi: Add LUN to an existing target (not runtime) 2018-01-17 12:41:29 -05:00