Revision 1455084e hw/scsi-generic.c
b/hw/scsi-generic.c | ||
---|---|---|
337 | 337 |
SCSIGenericReq *r = DO_UPCAST(SCSIGenericReq, req, req); |
338 | 338 |
int ret; |
339 | 339 |
|
340 |
if (cmd[0] != REQUEST_SENSE && |
|
341 |
(req->lun != s->lun || (cmd[1] >> 5) != s->lun)) { |
|
342 |
DPRINTF("Unimplemented LUN %d\n", req->lun ? req->lun : cmd[1] >> 5); |
|
340 |
if (cmd[0] != REQUEST_SENSE && req->lun != s->lun) { |
|
341 |
DPRINTF("Unimplemented LUN %d\n", req->lun); |
|
343 | 342 |
scsi_set_sense(s, SENSE_CODE(LUN_NOT_SUPPORTED)); |
344 | 343 |
r->req.status = CHECK_CONDITION; |
345 | 344 |
scsi_req_complete(&r->req); |
Also available in: Unified diff