From owner-cvs-src Tue Feb 18 14: 7:16 2003 Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1178337B405; Tue, 18 Feb 2003 14:07:14 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C01643FDF; Tue, 18 Feb 2003 14:07:11 -0800 (PST) (envelope-from njl@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h1IM7Bbv025720; Tue, 18 Feb 2003 14:07:11 -0800 (PST) (envelope-from njl@repoman.freebsd.org) Received: (from njl@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h1IM7BGb025719; Tue, 18 Feb 2003 14:07:11 -0800 (PST) Message-Id: <200302182207.h1IM7BGb025719@repoman.freebsd.org> From: Nate Lawson Date: Tue, 18 Feb 2003 14:07:11 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: 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 src/share/man/man4 Makefile targ.4 X-FreeBSD-CVS-Branch: RELENG_4 Sender: owner-cvs-src@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG njl 2003/02/18 14:07:11 PST Modified files: (Branch: RELENG_4) sys/cam/scsi scsi_target.c scsi_targetio.h share/examples/scsi_target Makefile scsi_target.c share/man/man4 Makefile Added files: (Branch: RELENG_4) share/examples/scsi_target scsi_cmds.c scsi_target.8 scsi_target.h share/man/man4 targ.4 Log: MFC: 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. Approved by: re (scottl) Revision Changes Path 1.2.2.1 +4 -2 src/share/examples/scsi_target/Makefile 1.2.2.1 +665 -0 src/share/examples/scsi_target/scsi_cmds.c (new) 1.2.4.1 +147 -0 src/share/examples/scsi_target/scsi_target.8 (new) 1.5.2.5 +798 -239 src/share/examples/scsi_target/scsi_target.c 1.1.4.1 +117 -0 src/share/examples/scsi_target/scsi_target.h (new) 1.83.2.61 +1 -0 src/share/man/man4/Makefile 1.3.2.1 +153 -0 src/share/man/man4/targ.4 (new) 1.22.2.7 +871 -2017 src/sys/cam/scsi/scsi_target.c 1.5.2.3 +26 -78 src/sys/cam/scsi/scsi_targetio.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-src" in the body of the message