search for: status_check_condit

Displaying 2 results from an estimated 2 matches for "status_check_condit".

2009 Oct 27
2
[PATCH 3/4] scsi-disk: Factor out SCSI command emulation
...e *s = r->dev; uint32_t tag; - DPRINTF("Command complete tag=0x%x status=%d sense=%d\n", r->tag, status, sense); - s->sense = sense; + + DPRINTF("Command complete tag=0x%x status=%d sense=%d\n", r->tag, + status, s->sense_len); + if (status == STATUS_CHECK_CONDITION) { + s->sense_len = scsi_build_sense(s->sense, sense); + } tag = r->tag; scsi_remove_request(r); - r->bus->complete(r->bus, SCSI_REASON_DONE, tag, status); + r->bus->complete(r->bus, SCSI_REASON_DONE, tag, (uint32_t)status); } /* Cancel a pending...
2009 Oct 27
2
[PATCH 3/4] scsi-disk: Factor out SCSI command emulation
...e *s = r->dev; uint32_t tag; - DPRINTF("Command complete tag=0x%x status=%d sense=%d\n", r->tag, status, sense); - s->sense = sense; + + DPRINTF("Command complete tag=0x%x status=%d sense=%d\n", r->tag, + status, s->sense_len); + if (status == STATUS_CHECK_CONDITION) { + s->sense_len = scsi_build_sense(s->sense, sense); + } tag = r->tag; scsi_remove_request(r); - r->bus->complete(r->bus, SCSI_REASON_DONE, tag, status); + r->bus->complete(r->bus, SCSI_REASON_DONE, tag, (uint32_t)status); } /* Cancel a pending...