Reporting SCSI error if command RESERVE TRACK fails

This commit is contained in:
2011-06-14 15:29:51 +00:00
parent f93babeea6
commit 4abf2b75b1
3 changed files with 12 additions and 3 deletions

View File

@ -359,6 +359,10 @@ int mmc_reserve_track(struct burn_drive *d, off_t size)
c->page = NULL;
c->dir = NO_TRANSFER;
d->issue_command(d, c);
if (c->error) {
d->cancel = 1;
scsi_notify_error(d, c, c->sense, 18, 2);
}
return !c->error;
}