Skip to contentSkip to conversation

: Remove LOAD_UNLOAD_MEDIUM usage from IBLOCK/FILEIO/RAMDISK

PATCH In review Nicholas A. Bellinger 1 participant 1 message Jan 27, 2009 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 3/4 : Remove LOAD_UNLOAD_MEDIUM usage from IBLOCK/FILEIO/RAMDISK

Quoted 1 line

From 26063b8d3f7a72a7529a0bef643ca2770023d487 Mon Sep 17 00:00:00 2001

From: Nicholas Bellinger <[email protected]>
Date: Tue, 27 Jan 2009 13:54:43 -0800
Subject: [PATCH 3/4] [Target_Core_Mod]: Remove LOAD_UNLOAD_MEDIUM usage from IBLOCK/FILEIO/RAMDISK

This patch removes the usage of LOAD_UNLOAD_MEDIUM (which has been droped in favor of using include/linux/cdrom.h GP_* opcode defines) in the various virtual (eg: above the SCSI layer) Target_Core_Mod subsystem plugin. This opcode is only defined for TYPE_ROM, and these subsystem plugins emulate TYPE_DISK.

---
 drivers/lio-core/target_core_file.c   |    1 -
 drivers/lio-core/target_core_iblock.c |    1 -
 drivers/lio-core/target_core_rd.c     |    1 -
 3 files changed, 0 insertions(+), 3 deletions(-)
drivers/lio-core/target_core_file.c +0 -1
index 5cf95f2..156090a 100644
@@ -490,7 +490,6 @@ static int fd_emulate_scsi_cdb (se_task_t *task)
 		break;
 	case ALLOW_MEDIUM_REMOVAL:
 	case ERASE:
-	case LOAD_UNLOAD_MEDIUM:
 	case REZERO_UNIT:
 	case SEEK_10:
 	case SPACE:
drivers/lio-core/target_core_iblock.c +0 -1
index 29dc87b..a94526c 100644
@@ -420,7 +420,6 @@ static int iblock_emulate_scsi_cdb (se_task_t *task)
 		break;
 	case ALLOW_MEDIUM_REMOVAL:
 	case ERASE:
-	case LOAD_UNLOAD_MEDIUM:
 	case REZERO_UNIT:
 	case SEEK_10:
 	case SPACE:
drivers/lio-core/target_core_rd.c +0 -1
index e991bb6..d6e4596 100644
@@ -495,7 +495,6 @@ static int rd_emulate_scsi_cdb (se_task_t *task)
 		break;
 	case ALLOW_MEDIUM_REMOVAL:
 	case ERASE:
-	case LOAD_UNLOAD_MEDIUM:
 	case REZERO_UNIT:
 	case SEEK_10:
 	case SPACE:
Signature · 1 line
1.5.4.1