Don't automatically send a START UNIT to sequential access devices-
this might cause them to load the tape unintentionally. Reviewed by: gibbs MFC after: 1 month
This commit is contained in:
parent
815cb72a0c
commit
753e7ed072
@ -1560,6 +1560,15 @@ camperiphscsisenseerror(union ccb *ccb, cam_flags camflags,
|
||||
case SS_START:
|
||||
{
|
||||
int le;
|
||||
if (SID_TYPE(&cgd.inq_data) == T_SEQUENTIAL) {
|
||||
xpt_free_ccb(orig_ccb);
|
||||
ccb->ccb_h.status |= CAM_DEV_QFRZN;
|
||||
*action_string = "Will not autostart a "
|
||||
"sequential access device";
|
||||
err_action = SS_FAIL;
|
||||
error = EIO;
|
||||
break;
|
||||
}
|
||||
|
||||
/*
|
||||
* Send a start unit command to the device, and
|
||||
|
Loading…
x
Reference in New Issue
Block a user