Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Oct 2014 10:58:53 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r272409 - head/sys/cam/scsi
Message-ID:  <201410021058.s92AwraG007650@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410021058.s92AwraG007650>