svn commit: r253323 - head/sys/cam/scsi

Alexander Motin mav at FreeBSD.org
Sat Jul 13 15:34:37 UTC 2013


Author: mav
Date: Sat Jul 13 15:34:37 2013
New Revision: 253323
URL: http://svnweb.freebsd.org/changeset/base/253323

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

Modified:
  head/sys/cam/scsi/scsi_all.c

Modified: head/sys/cam/scsi/scsi_all.c
==============================================================================
--- head/sys/cam/scsi/scsi_all.c	Sat Jul 13 13:35:09 2013	(r253322)
+++ head/sys/cam/scsi/scsi_all.c	Sat Jul 13 15:34:37 2013	(r253323)
@@ -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-all mailing list