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++) {
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to