numam-spdk/scripts
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
..
ceph test/ceph: move ceph_raw.img to /var/tmp 2017-08-11 12:35:18 -04:00
perf/nvme pep8: re-enable E302 (2 blank lines between functions) 2018-02-15 11:10:41 -05:00
rpc iscsi/rpc: Adjust format of bdev_name_id_pair between dump and construct 2018-02-21 15:07:48 -05:00
vagrant scripts/vagrant: add vagrant-libvirt provider 2017-12-04 17:36:45 -05:00
autotest_common.sh autotest: detect if nbd module is available 2018-02-02 12:34:21 -05:00
build_kmod.sh spdk: add the ioat_kperf test tool to autobuild system 2016-01-22 07:58:13 -07:00
check_format.sh pep8: re-enable E302 (2 blank lines between functions) 2018-02-15 11:10:41 -05:00
common.sh scripts: factor out iter_pci helper functions 2018-01-03 14:09:22 -05:00
detect_cc.sh build: use conditional CC/CXX assignment for generated mk/cc.mk 2018-02-12 12:10:49 -05:00
eofnl scripts/check_format: check trailing whitespace 2017-10-24 17:35:23 -04:00
fio.py pep8: re-enable E302 (2 blank lines between functions) 2018-02-15 11:10:41 -05:00
gen_nvme.sh scripts: factor out iter_pci helper functions 2018-01-03 14:09:22 -05:00
genconfig.py build: sort dictionary in genconfig.py before printing 2018-02-08 12:05:54 -05:00
pkgdep.sh doc: added graphviz as depenency 2018-02-13 13:16:07 -05:00
posix.txt build: Automatically detect use of POSIX includes 2017-05-08 13:20:37 -07:00
prep_benchmarks.sh scripts: Add reset option to prep_benchmarks.sh 2018-01-09 13:40:59 -05:00
rpc.py nvmf: allow configuration of ns NGUID and EUI64 2018-02-20 12:01:47 -05:00
setup.sh setup.sh: hide SKIP_PCI from public help 2018-01-24 16:45:09 -05:00