Browse Source

Added error simulation code to Linux system adapter.

ZeroEightSix
Thomas Schmitt 10 years ago
parent
commit
d5ecb382aa
2 changed files with 19 additions and 1 deletions
  1. +1
    -1
      cdrskin/cdrskin_timestamp.h
  2. +18
    -0
      libburn/sg-linux.c

+ 1
- 1
cdrskin/cdrskin_timestamp.h View File

@ -1 +1 @@
#define Cdrskin_timestamP "2010.08.02.100630"
#define Cdrskin_timestamP "2010.08.02.131946"

+ 18
- 0
libburn/sg-linux.c View File

@ -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;

Loading…
Cancel
Save