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

This commit is contained in:
Thomas Schmitt 2011-11-26 15:32:03 +00:00
parent 3411e4dfd5
commit d51e3c49cf
2 changed files with 2 additions and 2 deletions

View File

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

View File

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