svn commit: r273976 - stable/10/sys/cam/scsi

Alexander Motin mav at FreeBSD.org
Sun Nov 2 17:26:14 UTC 2014


Author: mav
Date: Sun Nov  2 17:26:13 2014
New Revision: 273976
URL: https://svnweb.freebsd.org/changeset/base/273976

Log:
  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.

Modified:
  stable/10/sys/cam/scsi/scsi_xpt.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/cam/scsi/scsi_xpt.c
==============================================================================
--- stable/10/sys/cam/scsi/scsi_xpt.c	Sun Nov  2 17:25:03 2014	(r273975)
+++ stable/10/sys/cam/scsi/scsi_xpt.c	Sun Nov  2 17:26:13 2014	(r273976)
@@ -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);


More information about the svn-src-all mailing list