Cared for some SCSI error conditions which were ignored up to now

This commit is contained in:
2006-11-06 19:58:24 +00:00
parent 448aac8880
commit e54be83b27
6 changed files with 42 additions and 14 deletions

View File

@ -382,7 +382,10 @@ void spc_probe_write_modes(struct burn_drive *d)
c.page->data[12] = try_block_type;
c.page->data[23] = 150;
c.dir = TO_DRIVE;
d->silent_on_scsi_error = 1;
d->issue_command(d, &c);
d->silent_on_scsi_error = 0;
key = c.sense[2];
asc = c.sense[12];
@ -491,6 +494,10 @@ int burn_scsi_setup_drive(struct burn_drive *d, int bus_no, int host_no,
d->channel = channel_no;
d->lun = lun_no;
/* ts A61106 */
d->silent_on_scsi_error = 0;
d->idata = malloc(sizeof(struct burn_scsi_inquiry_data));
d->idata->valid = 0;
d->mdata = malloc(sizeof(struct scsi_mode_data));