Date: Sat, 13 Jul 2013 15:34:37 +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: r253323 - head/sys/cam/scsi Message-ID: <201307131534.r6DFYbEr073868@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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++) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307131534.r6DFYbEr073868>