20 Apr 2009 22:12
[PATCH] [Target_Core_Mod/STGT]: Add struct Scsi_Host target infrastructure WIP
Nicholas A. Bellinger <nab <at> linux-iscsi.org>
2009-04-20 20:12:46 GMT
2009-04-20 20:12:46 GMT
Greetings all, This patch adds the first pieces of a v3.x subsystem plugin that interacts with Linux/SCSI to create a virtual target mode struct Scsi_Host, and using userspace backstores from the existing STGT codebase. So far, creating and removing STGT virtual target HBAs in through ConfigFS is working and status appearing under /sys/bus/stgt_bus and /sys/class/scsi_host/host#/ Most of the code required for actual STGT struct scsi_cmnd is in place (but not-tested yet), and the next main step is hooking up stgt_create_virtdevice() in drivers/target/target_core_stgt.c to assoicate the userspace backstore attached to the Target_Core_Mod/STGT virtual SCSI target mode HBA. The long term goal to allow all kernel level fabric modules to take advantage of the upstream STGT code in drivers/scsi/scsi_tgt_[if,lib].c. Here is what the running code looks like: *) tree /sys/kernel/config/target/core/ /sys/kernel/config/target/core/ |-- alua | |-- lu_gps | | `-- default_lu_gp | | |-- alua_access_state | | |-- lu_gp_id | | `-- members | `-- tg_pt_gps | `-- default_tg_pt_gp(Continue reading)
One thing I note is that the latest drafts of SSC and SMC support the
READ_ATTRIBUTES command, with SMC allowing the reading of attributes
from tapes in media slots. Thus, the current ssc.h definitions for MAM
seem incomplete. I would suggest a common set of routines for dealing
MAM in bot SSC and SMC.
RSS Feed