Actually don't report any failures of the TUR command, as for devices with no

media present they will always fail with the no media or media changed errors.
+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32732 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2009-08-27 01:41:07 +00:00
parent de9aa21e08
commit 5fa8a19786

View File

@ -382,8 +382,11 @@ usb_disk_operation(device_lun *lun, uint8 operation, uint8 opLength,
return B_OK;
} else {
// the operation is complete but has failed at the SCSI level
TRACE_ALWAYS("operation 0x%02x failed at the SCSI level\n",
operation);
if (operation != SCSI_TEST_UNIT_READY_6) {
TRACE_ALWAYS("operation 0x%02x failed at the SCSI level\n",
operation);
}
result = usb_disk_request_sense(lun);
return result == B_OK ? B_ERROR : result;
}