Revoked asynchronous eject, as we cannot distinguish out from unready

This commit is contained in:
Thomas Schmitt 2010-01-09 14:32:51 +00:00
parent 96167b3d8e
commit a88745c82e
2 changed files with 6 additions and 3 deletions

View File

@ -74,14 +74,17 @@ void sbc_eject(struct burn_drive *d)
return; return;
scsi_init_command(&c, SBC_UNLOAD, sizeof(SBC_UNLOAD)); scsi_init_command(&c, SBC_UNLOAD, sizeof(SBC_UNLOAD));
c.opcode[1] |= 1; /* ts A70918 : Immed */ /* c.opcode[1] |= 1; / * ts A70918 : Immed , ts B00109 : revoked */
c.page = NULL; c.page = NULL;
c.dir = NO_TRANSFER; c.dir = NO_TRANSFER;
d->issue_command(d, &c); d->issue_command(d, &c);
/* ts A70918 : Wait long. A late eject could surprise or hurt user.
ts B00109 : Asynchronous eject revoked, as one cannot reliably
distinguish out from unready.
if (c.error) if (c.error)
return; return;
/* ts A70918 : Wait long. A late eject could surprise or hurt user. */
spc_wait_unit_attention(d, 1800, "STOP UNIT (+ EJECT)", 0); spc_wait_unit_attention(d, 1800, "STOP UNIT (+ EJECT)", 0);
*/
} }

View File

@ -961,7 +961,7 @@ enum response scsi_error_msg(struct burn_drive *d, unsigned char *sense,
if (senselen<=0 || senselen>13) if (senselen<=0 || senselen>13)
*ascq = sense[13]; *ascq = sense[13];
sprintf(msg, "[%X %2.2X %2.2X]", (*key) & 0xf, *asc, *ascq); sprintf(msg, "[%X %2.2X %2.2X] ", (*key) & 0xf, *asc, *ascq);
msg= msg + strlen(msg); msg= msg + strlen(msg);
burn_print(12, "CONDITION: 0x%x 0x%x 0x%x on %s %s\n", burn_print(12, "CONDITION: 0x%x 0x%x 0x%x on %s %s\n",