Bug fix: Solaris adapter mishandled write commands which failed on first try
This commit is contained in:
parent
3411e4dfd5
commit
d51e3c49cf
@ -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;
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user