From 81f11b6dc20ba1f2458846709d186ebea2ba0316 Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Sun, 22 Aug 2021 19:50:54 +0200 Subject: [PATCH] Revert "LUN handling update" This reverts commit 877c78ef7b3cbea852941b5c69abd771ea1a008d. --- src/raspberrypi/controllers/scsidev_ctrl.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/raspberrypi/controllers/scsidev_ctrl.cpp b/src/raspberrypi/controllers/scsidev_ctrl.cpp index 565baf22..bd14cc6b 100644 --- a/src/raspberrypi/controllers/scsidev_ctrl.cpp +++ b/src/raspberrypi/controllers/scsidev_ctrl.cpp @@ -252,9 +252,6 @@ void SCSIDEV::Execute() catch (const lun_exception& e) { LOGINFO("%s Invalid LUN %d for ID %d", __PRETTY_FUNCTION__, e.getlun(), GetSCSIID()); - // SCSI-2 p.104 4.4.3 Incorrect logical unit handling - ctrl.buffer[0] = 0x7f; - Error(ERROR_CODES::sense_key::ILLEGAL_REQUEST, ERROR_CODES::asc::INVALID_LUN); return; } @@ -666,9 +663,6 @@ void SCSIDEV::Receive() catch (const lun_exception& e) { LOGINFO("%s Invalid LUN %d for ID %d", __PRETTY_FUNCTION__, e.getlun(), GetSCSIID()); - // SCSI-2 p.104 4.4.3 Incorrect logical unit handling - ctrl.buffer[0] = 0x7f; - Error(ERROR_CODES::sense_key::ILLEGAL_REQUEST, ERROR_CODES::asc::INVALID_LUN); } break;