summaryrefslogtreecommitdiffstats
path: root/sys/cam/scsi/scsi_da.c
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2015-08-29 11:21:20 +0000
committermav <mav@FreeBSD.org>2015-08-29 11:21:20 +0000
commit8cde3bfeee04d11f30244c875082f0c8423cbcd8 (patch)
treeae3da0a451f4c41a8c341f1bc35e47f7fd58eb03 /sys/cam/scsi/scsi_da.c
parent7103f3af38e72a781630567caadef9c461532a90 (diff)
downloadFreeBSD-src-8cde3bfeee04d11f30244c875082f0c8423cbcd8.zip
FreeBSD-src-8cde3bfeee04d11f30244c875082f0c8423cbcd8.tar.gz
Attach pass driver to LUNs is OFFLINE state.
Previously such LUNs were silently ignored. But while they indeed unable to process most of SCSI commands, some, like RTPG, they still can. MFC after: 1 month
Diffstat (limited to 'sys/cam/scsi/scsi_da.c')
-rw-r--r--sys/cam/scsi/scsi_da.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c
index 74dd3b9..3ebbb71 100644
--- a/sys/cam/scsi/scsi_da.c
+++ b/sys/cam/scsi/scsi_da.c
@@ -1663,7 +1663,8 @@ daasync(void *callback_arg, u_int32_t code,
if (cgd->protocol != PROTO_SCSI)
break;
-
+ if (SID_QUAL(&cgd->inq_data) != SID_QUAL_LU_CONNECTED)
+ break;
if (SID_TYPE(&cgd->inq_data) != T_DIRECT
&& SID_TYPE(&cgd->inq_data) != T_RBC
&& SID_TYPE(&cgd->inq_data) != T_OPTICAL)
OpenPOWER on IntegriCloud