[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1233907174.12375.361.camel@haakon2.linux-iscsi.org>
Date: Thu, 05 Feb 2009 23:59:34 -0800
From: "Nicholas A. Bellinger" <nab@...ux-iscsi.org>
To: LKML <linux-kernel@...r.kernel.org>,
linux-scsi <linux-scsi@...r.kernel.org>
Cc: Douglas Gilbert <dgilbert@...erlog.com>,
James Bottomley <James.Bottomley@...senPartnership.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Mike Christie <michaelc@...wisc.edu>,
FUJITA Tomonori <fujita.tomonori@....ntt.co.jp>,
Hannes Reinecke <hare@...e.de>, Christoph Hellwig <hch@....de>,
"Ross S. W. Walker" <rswwalker@...il.com>,
Arne Redlich <agr@...erkom-dd.de>,
Rafiu Fakunle <rafiu@...nfiler.com>
Subject: [PATCH 3/6] [Target_Core_Mod]: Update FILEIO and RAMDISK subsystem
plugins to SPC-3 revision identifer
>>From 848969be2f3ea81949fbb2ff33774b1b7f9db981 Mon Sep 17 00:00:00 2001
From: Nicholas Bellinger <nab@...ux-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@...ux-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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists