diff options
author | mav <mav@FreeBSD.org> | 2014-11-02 17:26:13 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2014-11-02 17:26:13 +0000 |
commit | 13d0c695a0aa6e7afd15090eafe52fe18cf7fab2 (patch) | |
tree | 5a48861ea5241c5bb502e1d65107b7ce60db963c | |
parent | 5c2f41bdb07fd1fccc292183d24d9a7cd1c22347 (diff) | |
download | FreeBSD-src-13d0c695a0aa6e7afd15090eafe52fe18cf7fab2.zip FreeBSD-src-13d0c695a0aa6e7afd15090eafe52fe18cf7fab2.tar.gz |
MFC r272409:
Use REPORT LUNS command for SPC-2 devices with LUN 0 disconnected.
SPC-2 tells REPORT LUNS shall be supported by devices supporting LUNs other
then LUN 0. If we see LUN 0 disconnected, guess there may be others, and
so REPORT LUNS shall be supported.
-rw-r--r-- | sys/cam/scsi/scsi_xpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/scsi/scsi_xpt.c b/sys/cam/scsi/scsi_xpt.c index 63f396f..56dada4 100644 --- a/sys/cam/scsi/scsi_xpt.c +++ b/sys/cam/scsi/scsi_xpt.c @@ -1194,7 +1194,7 @@ out: xpt_schedule(periph, priority); goto out; } else if (path->device->lun_id == 0 && - SID_ANSI_REV(inq_buf) > SCSI_REV_SPC2 && + SID_ANSI_REV(inq_buf) >= SCSI_REV_SPC2 && (SCSI_QUIRK(path->device)->quirks & CAM_QUIRK_NORPTLUNS) == 0) { PROBE_SET_ACTION(softc, PROBE_REPORT_LUNS); |