From: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
To: "Linux-iSCSI.org Target Dev" <linux-iscsi-target-dev@googlegroups.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
linux-scsi <linux-scsi@vger.kernel.org>,
James Bottomley <James.Bottomley@HansenPartnership.com>,
Jens Axboe <jens.axboe@oracle.com>
Subject: [PATCH 3/4] [Target_Core_Mod]: Remove LOAD_UNLOAD_MEDIUM usage from IBLOCK/FILEIO/RAMDISK
Date: Tue, 27 Jan 2009 14:08:08 -0800 [thread overview]
Message-ID: <1233094088.6442.105.camel@haakon2.linux-iscsi.org> (raw)
>From 26063b8d3f7a72a7529a0bef643ca2770023d487 Mon Sep 17 00:00:00 2001
From: Nicholas Bellinger <nab@linux-iscsi.org>
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.
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
---
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(-)
diff --git a/drivers/lio-core/target_core_file.c b/drivers/lio-core/target_core_file.c
index 5cf95f2..156090a 100644
--- a/drivers/lio-core/target_core_file.c
+++ b/drivers/lio-core/target_core_file.c
@@ -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:
diff --git a/drivers/lio-core/target_core_iblock.c b/drivers/lio-core/target_core_iblock.c
index 29dc87b..a94526c 100644
--- a/drivers/lio-core/target_core_iblock.c
+++ b/drivers/lio-core/target_core_iblock.c
@@ -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:
diff --git a/drivers/lio-core/target_core_rd.c b/drivers/lio-core/target_core_rd.c
index e991bb6..d6e4596 100644
--- a/drivers/lio-core/target_core_rd.c
+++ b/drivers/lio-core/target_core_rd.c
@@ -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:
--
1.5.4.1
reply other threads:[~2009-01-27 22:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1233094088.6442.105.camel@haakon2.linux-iscsi.org \
--to=nab@linux-iscsi.org \
--cc=James.Bottomley@HansenPartnership.com \
--cc=jens.axboe@oracle.com \
--cc=linux-iscsi-target-dev@googlegroups.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®