Date: Fri, 22 Nov 2002 14:55:52 -0800 (PST) From: Nate Lawson <njl@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/modules/cam Makefile src/share/man/man4 targ.4 src/sys/cam/scsi scsi_target.c scsi_targetio.h src/share/examples/scsi_target Makefile scsi_cmds.c scsi_target.8 scsi_target.c scsi_target.h Message-ID: <200211222255.gAMMtq44090986@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
njl 2002/11/22 14:55:52 PST Modified files: sys/modules/cam Makefile sys/cam/scsi scsi_target.c scsi_targetio.h share/examples/scsi_target Makefile scsi_target.c Added files: share/man/man4 targ.4 share/examples/scsi_target scsi_cmds.c scsi_target.8 scsi_target.h Log: New SCSI target emulator code This code allows a user program to enable target mode on a SIM and then emulate any number of devices (disks, tape drives, etc.) All decisions about device behavior (UA, CA, inquiry response) are left to the usermode program and the kernel driver is merely a conduit for CCBs. This enables multiple concurrent target emulators, each using its own backing store and IO model. Also included is a user program that emulates a disk (RBC) using a file as a backing store. This provides functionality similar to md(4) at the CAM layer. Code has been tested on ahc(4) and should also work on isp(4) (and other SIMs that gain target mode support). It is a complete rewrite of /sys/cam/scsi_target* and /usr/share/examples/scsi_target. Design, comments from: gibbs Supported by: Cryptography Research Approved by: re Revision Changes Path 1.3 +3 -2 src/share/examples/scsi_target/Makefile 1.1 +664 -0 src/share/examples/scsi_target/scsi_cmds.c (new) 1.1 +142 -0 src/share/examples/scsi_target/scsi_target.8 (new) 1.12 +768 -238 src/share/examples/scsi_target/scsi_target.c 1.1 +117 -0 src/share/examples/scsi_target/scsi_target.h (new) 1.1 +143 -0 src/share/man/man4/targ.4 (new) 1.45 +926 -2043 src/sys/cam/scsi/scsi_target.c 1.11 +24 -88 src/sys/cam/scsi/scsi_targetio.h 1.8 +1 -1 src/sys/modules/cam/Makefile To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211222255.gAMMtq44090986>