diff options
| author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2014-09-17 07:55:23 +0000 |
|---|---|---|
| committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2014-09-17 07:55:23 +0000 |
| commit | 17cf3eb1528a75d6e42cdc00db21d6bfd428dc64 (patch) | |
| tree | c79103171e1322280af3f47149c36663fd738cfd | |
| parent | 4ab4d6879c91f3cd060078290cee253a942a6ed1 (diff) | |
Notes
| -rw-r--r-- | sys/dev/iscsi/iscsi.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/iscsi/iscsi.c b/sys/dev/iscsi/iscsi.c index f3961ffbcf35a..e11b2b64beda0 100644 --- a/sys/dev/iscsi/iscsi.c +++ b/sys/dev/iscsi/iscsi.c @@ -2179,7 +2179,12 @@ iscsi_action(struct cam_sim *sim, union ccb *ccb) cpi->hba_misc = PIM_EXTLUNS; cpi->hba_eng_cnt = 0; cpi->max_target = 0; - cpi->max_lun = 0; + /* + * Note that the variable below is only relevant for targets + * that don't claim compliance with anything above SPC2, which + * means they don't support REPORT_LUNS. + */ + cpi->max_lun = 255; cpi->initiator_id = ~0; strlcpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); strlcpy(cpi->hba_vid, "iSCSI", HBA_IDLEN); |
