svn commit: r255545 - stable/9/sys/cam/scsi

Alexander Motin mav at FreeBSD.org
Sat Sep 14 09:03:21 UTC 2013


Author: mav
Date: Sat Sep 14 09:03:21 2013
New Revision: 255545
URL: http://svnweb.freebsd.org/changeset/base/255545

Log:
  MFC r253323:
  When printing opcode description, map T_NODEVICE to Direct Access Device to
  handle REPORT LUNS, etc.

Modified:
  stable/9/sys/cam/scsi/scsi_all.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/cam/scsi/scsi_all.c
==============================================================================
--- stable/9/sys/cam/scsi/scsi_all.c	Sat Sep 14 09:01:42 2013	(r255544)
+++ stable/9/sys/cam/scsi/scsi_all.c	Sat Sep 14 09:03:21 2013	(r255545)
@@ -665,6 +665,10 @@ scsi_op_desc(u_int16_t opcode, struct sc
 	if (pd_type == T_RBC)
 		pd_type = T_DIRECT;
 
+	/* Map NODEVICE to Direct Access Device to handle REPORT LUNS, etc. */
+	if (pd_type == T_NODEVICE)
+		pd_type = T_DIRECT;
+
 	opmask = 1 << pd_type;
 
 	for (j = 0; j < num_tables; j++) {


More information about the svn-src-stable-9 mailing list