summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2013-07-13 15:34:37 +0000
committermav <mav@FreeBSD.org>2013-07-13 15:34:37 +0000
commitc60dcc15f195c5b61b24626d4fbbdfc3d8c0e722 (patch)
tree0e4cd540776d93a04c1fb814aee281771816f3a9 /sys
parentd75119065b9ad4b13f6870b29b9ebebec97bcaf8 (diff)
downloadFreeBSD-src-c60dcc15f195c5b61b24626d4fbbdfc3d8c0e722.zip
FreeBSD-src-c60dcc15f195c5b61b24626d4fbbdfc3d8c0e722.tar.gz
When printing opcode description, map T_NODEVICE to Direct Access Device to
handle REPORT LUNS, etc.
Diffstat (limited to 'sys')
-rw-r--r--sys/cam/scsi/scsi_all.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_all.c b/sys/cam/scsi/scsi_all.c
index 5248338..324dc9a 100644
--- a/sys/cam/scsi/scsi_all.c
+++ b/sys/cam/scsi/scsi_all.c
@@ -665,6 +665,10 @@ scsi_op_desc(u_int16_t opcode, struct scsi_inquiry_data *inq_data)
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++) {
OpenPOWER on IntegriCloud