Enabled optional reporting of drive replies in libcdio adapter
This commit is contained in:
parent
9efa4f6184
commit
fb4bcefd15
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2011.10.27.091014"
|
#define Cdrskin_timestamP "2011.10.27.094705"
|
||||||
|
@ -615,7 +615,7 @@ int sg_release(struct burn_drive *d)
|
|||||||
*/
|
*/
|
||||||
int sg_issue_command(struct burn_drive *d, struct command *c)
|
int sg_issue_command(struct burn_drive *d, struct command *c)
|
||||||
{
|
{
|
||||||
int sense_valid = 0, i, timeout_ms;
|
int sense_valid = 0, i, timeout_ms, sense_len;
|
||||||
int key = 0, asc = 0, ascq = 0, done = 0;
|
int key = 0, asc = 0, ascq = 0, done = 0;
|
||||||
time_t start_time;
|
time_t start_time;
|
||||||
driver_return_code_t i_status;
|
driver_return_code_t i_status;
|
||||||
@ -705,11 +705,12 @@ int sg_issue_command(struct burn_drive *d, struct command *c)
|
|||||||
done = 1;
|
done = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (i_status != 0 || (key || asc || ascq)) {
|
if (key || asc || ascq)
|
||||||
done = scsi_eval_cmd_outcome(d, c, fp, c->sense, 18,
|
sense_len = 18;
|
||||||
|
else
|
||||||
|
sense_len = 0;
|
||||||
|
done = scsi_eval_cmd_outcome(d, c, fp, c->sense, sense_len,
|
||||||
0, start_time, timeout_ms, i, 2);
|
0, start_time, timeout_ms, i, 2);
|
||||||
} else
|
|
||||||
done = 1;
|
|
||||||
|
|
||||||
} /* end of retry-loop */
|
} /* end of retry-loop */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user