numam-spdk/lib/scsi
Shuhei Matsumoto 45dddbc891 scsi: Decide LUN format for each LUN ID
Previously we decided which LUN format is used by the macro constant
SPDK_SCSI_DEV_MAX_LUN. However, as long as we read SAM, the LUN format
can be decided per LUN ID.

Linux host SCSI driver supports 256 LUNs per SCSI device at the
maximum. So we cannot test this fix on any actual system but we
apply this fix for the potential future cases.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: Ifa6a3b66431f5e1eade326348dd99b8b9653408b
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9664
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2021-10-12 09:10:18 +00:00
..
dev.c scsi: Manage LUNs per device by not fixed size array but linked list 2021-10-12 09:10:18 +00:00
lun.c lib/trace: don't pass zero as a non-argument 2021-06-28 16:17:35 +00:00
Makefile scsi: Add spdk_scsi_dev_get_first/next_lun() to traverse all LUNs 2021-10-11 10:08:22 +00:00
port.c lib/scsi: Remove spdk_ prefix from internal APIs 2020-04-16 08:09:14 +00:00
scsi_bdev.c scsi: Report LUNs use spdk_scsi_dev_get_first/next_lun() to iterate LUNs 2021-10-11 10:08:22 +00:00
scsi_internal.h scsi: SCSI device supports 256 LUNs at the maximum by default 2021-10-12 09:10:18 +00:00
scsi_pr.c scsi: return scsi error status for invalid SCSI CDB 2021-04-15 20:25:28 +00:00
scsi_rpc.c lib/scsi: Remove spdk prefix from private functions 2020-04-16 08:09:14 +00:00
scsi.c scsi: Decide LUN format for each LUN ID 2021-10-12 09:10:18 +00:00
spdk_scsi.map scsi: Add spdk_scsi_dev_get_first/next_lun() to traverse all LUNs 2021-10-11 10:08:22 +00:00
task.c scsi: relax spdk_scsi_task_gather_data assert 2021-03-09 08:53:21 +00:00