36a8f75006
When constructing a SCSI device, LUN 0 must be assigned to some LUN. However, the current code was assuming that LUN 0 had to be in the first array element of lun_id_list in spdk_scsi_dev_construct(). Combined with the scripts/rpc.py implementation that uses a Python (unordered) dictionary object to generate the lun_ids array, there could be cases where LUN 0 exists in the list but isn't first. Fix the check by allowing LUN 0 in any position of the lun_id_list array. Change-Id: I39f387ec238fcecca8d2d786d3d42c42a4790637 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/381611 Reviewed-by: <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> |
||
---|---|---|
.. | ||
lib | ||
Makefile |