svn commit: r272409 - head/sys/cam/scsi
Alexander Motin
mav at FreeBSD.org
Thu Oct 2 10:58:53 UTC 2014
Author: mav
Date: Thu Oct 2 10:58:52 2014
New Revision: 272409
URL: https://svnweb.freebsd.org/changeset/base/272409
Log:
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.
MFC after: 1 month
Modified:
head/sys/cam/scsi/scsi_xpt.c
Modified: head/sys/cam/scsi/scsi_xpt.c
==============================================================================
--- head/sys/cam/scsi/scsi_xpt.c Thu Oct 2 10:49:01 2014 (r272408)
+++ head/sys/cam/scsi/scsi_xpt.c Thu Oct 2 10:58:52 2014 (r272409)
@@ -1191,7 +1191,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);
More information about the svn-src-all
mailing list