Commit d5ecb382 authored by Thomas Schmitt's avatar Thomas Schmitt

Added error simulation code to Linux system adapter.

parent cdcda193
#define Cdrskin_timestamP "2010.08.02.100630"
#define Cdrskin_timestamP "2010.08.02.131946"
......@@ -1892,6 +1892,24 @@ int sg_issue_command(struct burn_drive *d, struct command *c)
return -1;
}
#ifdef NIX
/* <<< */
if(0){
static int erst= 1;
static unsigned char b00_sense[22]= {
0x72, 0x0B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0E,
0x09, 0x0C, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
if (erst > 0) {
s.sb_len_wr= 22;
memcpy(s.sbp, b00_sense, s.sb_len_wr);
erst--;
}
}
/* <<< */
#endif /* NIX */
if (s.sb_len_wr) {
if (!c->retry) {
c->error = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment