Lines 445-451
Link Here
|
445 |
} |
445 |
} |
446 |
|
446 |
|
447 |
if ((ccb.ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) { |
447 |
if ((ccb.ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) { |
448 |
cam_error_print(m_camdev, &ccb, CAM_ESF_ALL, CAM_EPF_ALL, stderr); |
448 |
if(scsi_debugmode > 0) |
|
|
449 |
cam_error_print(m_camdev, &ccb, CAM_ESF_ALL, CAM_EPF_ALL, stderr); |
449 |
set_err(EIO); |
450 |
set_err(EIO); |
450 |
return -1; |
451 |
return -1; |
451 |
} |
452 |
} |
Lines 997-1009
Link Here
|
997 |
|
998 |
|
998 |
if (cam_send_ccb(m_camdev,ccb) < 0) { |
999 |
if (cam_send_ccb(m_camdev,ccb) < 0) { |
999 |
warn("error sending SCSI ccb"); |
1000 |
warn("error sending SCSI ccb"); |
1000 |
cam_error_print(m_camdev,ccb,CAM_ESF_ALL,CAM_EPF_ALL,stderr); |
1001 |
if (report > 0) |
|
|
1002 |
cam_error_print(m_camdev,ccb,CAM_ESF_ALL,CAM_EPF_ALL,stderr); |
1001 |
cam_freeccb(ccb); |
1003 |
cam_freeccb(ccb); |
1002 |
return -EIO; |
1004 |
return -EIO; |
1003 |
} |
1005 |
} |
1004 |
|
1006 |
|
1005 |
if (((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) && ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_SCSI_STATUS_ERROR)) { |
1007 |
if (((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) && ((ccb->ccb_h.status & CAM_STATUS_MASK) == CAM_SCSI_STATUS_ERROR)) { |
1006 |
cam_error_print(m_camdev,ccb,CAM_ESF_ALL,CAM_EPF_ALL,stderr); |
1008 |
if(report > 0) |
|
|
1009 |
cam_error_print(m_camdev,ccb,CAM_ESF_ALL,CAM_EPF_ALL,stderr); |
1007 |
cam_freeccb(ccb); |
1010 |
cam_freeccb(ccb); |
1008 |
return -EIO; |
1011 |
return -EIO; |
1009 |
} |
1012 |
} |