Skip to contentSkip to conversation

: Update FILEIO and RAMDISK subsystem plugins to SPC-3 revision identifer

PATCH New Nicholas A. Bellinger 1 participant 1 message Feb 6, 2009 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 3/6 : Update FILEIO and RAMDISK subsystem plugins to SPC-3 revision identifer

Quoted 1 line

From 848969be2f3ea81949fbb2ff33774b1b7f9db981 Mon Sep 17 00:00:00 2001

From: Nicholas Bellinger <[email protected]>
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.

---
 drivers/lio-core/target_core_file.c |    2 +-
 drivers/lio-core/target_core_rd.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/lio-core/target_core_file.c +1 -1
index 156090a..12faa15 100644
@@ -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)
drivers/lio-core/target_core_rd.c +1 -1
index d6e4596..1c263cc 100644
@@ -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)
Signature · 1 line
1.5.4.1