diff options
author | jimharris <jimharris@FreeBSD.org> | 2012-09-24 21:45:41 +0000 |
---|---|---|
committer | jimharris <jimharris@FreeBSD.org> | 2012-09-24 21:45:41 +0000 |
commit | 31dff96761062ccfd9b594fe3c7af872439b963a (patch) | |
tree | 42f195469ce7a1ae01d48cc702d4307df749f68e | |
parent | 9d75de6934e4c7c6038b38aa1fb5d0d1166626d0 (diff) | |
download | FreeBSD-src-31dff96761062ccfd9b594fe3c7af872439b963a.zip FreeBSD-src-31dff96761062ccfd9b594fe3c7af872439b963a.tar.gz |
Use CAM_SEL_TIMEOUT and CAM_DEV_NOT_THERE to report missing targets or
LUNs respectively. This removes a huge number of error messages
from CAM during bus scans.
Copied almost verbatim from mav's commit r237460.
Submitted by: Mike Tancsa <mike at sentex dot net>
MFC after: 3 days
-rw-r--r-- | sys/dev/tws/tws_cam.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/tws/tws_cam.c b/sys/dev/tws/tws_cam.c index df78b99..ad2cd61 100644 --- a/sys/dev/tws/tws_cam.c +++ b/sys/dev/tws/tws_cam.c @@ -529,10 +529,10 @@ tws_scsi_err_complete(struct tws_request *req, struct tws_command_header *hdr) if ( ccb->ccb_h.target_lun ) { TWS_TRACE_DEBUG(sc, "invalid lun error",0,0); - ccb->ccb_h.status |= CAM_LUN_INVALID; + ccb->ccb_h.status |= CAM_DEV_NOT_THERE; } else { TWS_TRACE_DEBUG(sc, "invalid target error",0,0); - ccb->ccb_h.status |= CAM_TID_INVALID; + ccb->ccb_h.status |= CAM_SEL_TIMEOUT; } } else { |