Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/aacraid/aacraid_cam.c
Show First 20 Lines • Show All 1,176 Lines • ▼ Show 20 Lines | if (ccb->ccb_h.func_code == XPT_SCSI_IO) { | ||||
int sense_len, scsi_sense_len; | int sense_len, scsi_sense_len; | ||||
scsi_sense_len = sizeof(struct scsi_sense_data); | scsi_sense_len = sizeof(struct scsi_sense_data); | ||||
bzero(&ccb->csio.sense_data, scsi_sense_len); | bzero(&ccb->csio.sense_data, scsi_sense_len); | ||||
sense_len = (srbr->sense_len > | sense_len = (srbr->sense_len > | ||||
scsi_sense_len) ? scsi_sense_len : | scsi_sense_len) ? scsi_sense_len : | ||||
srbr->sense_len; | srbr->sense_len; | ||||
bcopy(&srbr->sense[0], &ccb->csio.sense_data, | bcopy(&srbr->sense[0], &ccb->csio.sense_data, | ||||
srbr->sense_len); | sense_len); | ||||
ccb->csio.sense_len = sense_len; | ccb->csio.sense_len = sense_len; | ||||
ccb->ccb_h.status |= CAM_AUTOSNS_VALID; | ccb->ccb_h.status |= CAM_AUTOSNS_VALID; | ||||
// scsi_sense_print(&ccb->csio); | // scsi_sense_print(&ccb->csio); | ||||
} | } | ||||
/* If this is an inquiry command, fake things out */ | /* If this is an inquiry command, fake things out */ | ||||
if (ccb->ccb_h.flags & CAM_CDB_POINTER) | if (ccb->ccb_h.flags & CAM_CDB_POINTER) | ||||
command = ccb->csio.cdb_io.cdb_ptr[0]; | command = ccb->csio.cdb_io.cdb_ptr[0]; | ||||
▲ Show 20 Lines • Show All 200 Lines • Show Last 20 Lines |