Bug fix: Solaris adapter mishandled write commands which failed on first try

1.2.0
Thomas Schmitt 11 years ago
parent 041f0e357e
commit 417a4cc0bf
  1. 2
      cdrskin/cdrskin_timestamp.h
  2. 2
      libburn/sg-solaris.c

@ -1 +1 @@
#define Cdrskin_timestamP "2011.11.23.104948"
#define Cdrskin_timestamP "2011.11.26.153142"

@ -586,7 +586,6 @@ int sg_issue_command(struct burn_drive *d, struct command *c)
static FILE *fp = NULL;
c->error = 0;
memset(c->sense, 0, sizeof(c->sense));
if (d->fd == -1)
return 0;
@ -632,6 +631,7 @@ int sg_issue_command(struct burn_drive *d, struct command *c)
timeout_ms = 200000;
for(i = 0; !done; i++) {
memset(c->sense, 0, sizeof(c->sense));
ret = ioctl(d->fd, USCSICMD, &cgc);
/* For cgc.uscsi_status see SAM-3 5.3.1, Table 22

Loading…
Cancel
Save