Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/scsi/scsi_sa.c
Show First 20 Lines • Show All 2,421 Lines • ▼ Show 20 Lines | if (cgd->inq_data.spc3_flags & SPC3_SID_PROTECT) { | ||||
if ((cdai.ccb_h.status & CAM_DEV_QFRZN) != 0) | if ((cdai.ccb_h.status & CAM_DEV_QFRZN) != 0) | ||||
cam_release_devq(cdai.ccb_h.path, 0, 0, 0, FALSE); | cam_release_devq(cdai.ccb_h.path, 0, 0, 0, FALSE); | ||||
if ((cdai.ccb_h.status == CAM_REQ_CMP) | if ((cdai.ccb_h.status == CAM_REQ_CMP) | ||||
&& (ext_inq.flags1 & SVPD_EID_SA_SPT_LBP)) | && (ext_inq.flags1 & SVPD_EID_SA_SPT_LBP)) | ||||
softc->flags |= SA_FLAG_PROTECT_SUPP; | softc->flags |= SA_FLAG_PROTECT_SUPP; | ||||
} | } | ||||
bzero(&cpi, sizeof(cpi)); | xpt_path_inq(&cpi, periph->path, CAM_PRIORITY_NORMAL); | ||||
xpt_setup_ccb(&cpi.ccb_h, periph->path, CAM_PRIORITY_NORMAL); | |||||
cpi.ccb_h.func_code = XPT_PATH_INQ; | |||||
xpt_action((union ccb *)&cpi); | |||||
/* | /* | ||||
* The SA driver supports a blocksize, but we don't know the | * The SA driver supports a blocksize, but we don't know the | ||||
* blocksize until we media is inserted. So, set a flag to | * blocksize until we media is inserted. So, set a flag to | ||||
* indicate that the blocksize is unavailable right now. | * indicate that the blocksize is unavailable right now. | ||||
*/ | */ | ||||
cam_periph_unlock(periph); | cam_periph_unlock(periph); | ||||
softc->device_stats = devstat_new_entry("sa", periph->unit_number, 0, | softc->device_stats = devstat_new_entry("sa", periph->unit_number, 0, | ||||
▲ Show 20 Lines • Show All 3,480 Lines • Show Last 20 Lines |