From: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
To: LKML <linux-kernel@vger.kernel.org>,
linux-scsi <linux-scsi@vger.kernel.org>
Cc: Douglas Gilbert <dgilbert@interlog.com>,
James Bottomley <James.Bottomley@HansenPartnership.com>,
Andrew Morton <akpm@linux-foundation.org>,
Mike Christie <michaelc@cs.wisc.edu>,
FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>,
Hannes Reinecke <hare@suse.de>, Christoph Hellwig <hch@lst.de>,
"Ross S. W. Walker" <rswwalker@gmail.com>,
Arne Redlich <agr@powerkom-dd.de>,
Rafiu Fakunle <rafiu@openfiler.com>
Subject: [PATCH 3/6] [Target_Core_Mod]: Update FILEIO and RAMDISK subsystem plugins to SPC-3 revision identifer
Date: Thu, 05 Feb 2009 23:59:34 -0800 [thread overview]
Message-ID: <1233907174.12375.361.camel@haakon2.linux-iscsi.org> (raw)
>From 848969be2f3ea81949fbb2ff33774b1b7f9db981 Mon Sep 17 00:00:00 2001
From: Nicholas Bellinger <nab@linux-iscsi.org>
Date: Thu, 5 Feb 2009 23:15:52 -0800
Subject: [PATCH 3/6] [Target_Core_Mod]: Update FILEIO and RAMDISK subsystem plugins to SPC-3 revision identifer
This patch enables ILEIO and RAMDISK subsystem plugins to use the generic
PERSISTENT_RESERVATION and ALUA logic in Target_Core_Mod/ConfigFS.
At a later date a given $STORAGE_OBJECT will be able to be changed back to
emulated SPC-2 operation via configfs in /sys/kernel/config/target/core/$HBA/$DEV/attrib/
for legacy SPC-2 operation.
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
---
drivers/lio-core/target_core_file.c | 2 +-
drivers/lio-core/target_core_rd.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/lio-core/target_core_file.c b/drivers/lio-core/target_core_file.c
index 156090a..12faa15 100644
--- a/drivers/lio-core/target_core_file.c
+++ b/drivers/lio-core/target_core_file.c
@@ -1176,7 +1176,7 @@ extern u32 fd_get_blocksize (se_device_t *dev)
*/
extern u32 fd_get_device_rev (se_device_t *dev)
{
- return(SCSI_2);
+ return(SCSI_SPC_2); // Returns SPC-3 in Initiator Data
}
/* fd_get_device_type(): (Part of se_subsystem_api_t template)
diff --git a/drivers/lio-core/target_core_rd.c b/drivers/lio-core/target_core_rd.c
index d6e4596..1c263cc 100644
--- a/drivers/lio-core/target_core_rd.c
+++ b/drivers/lio-core/target_core_rd.c
@@ -1346,7 +1346,7 @@ extern u32 rd_get_blocksize (se_device_t *dev)
extern u32 rd_get_device_rev (se_device_t *dev)
{
- return(SCSI_2);
+ return(SCSI_SPC_2); // Returns SPC-3 in Initiator Data
}
extern u32 rd_get_device_type (se_device_t *dev)
--
1.5.4.1
reply other threads:[~2009-02-06 8:01 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=1233907174.12375.361.camel@haakon2.linux-iscsi.org \
--to=nab@linux-iscsi.org \
--cc=James.Bottomley@HansenPartnership.com \
--cc=agr@powerkom-dd.de \
--cc=akpm@linux-foundation.org \
--cc=dgilbert@interlog.com \
--cc=fujita.tomonori@lab.ntt.co.jp \
--cc=hare@suse.de \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=michaelc@cs.wisc.edu \
--cc=rafiu@openfiler.com \
--cc=rswwalker@gmail.com \
/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®