From 5fa8a19786a8fa8071daf4231e616dc318c12d4f Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Thu, 27 Aug 2009 01:41:07 +0000 Subject: [PATCH] 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 --- src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp b/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp index b2f500b31b..42ea333fca 100644 --- a/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp +++ b/src/add-ons/kernel/drivers/disk/usb/usb_disk/usb_disk.cpp @@ -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; }