Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Sep 2002 01:54:08 -0700 (PDT)
From:      Nate Lawson <nate@root.org>
To:        hackers@freebsd.org, scsi@freebsd.org
Subject:   New scsi_target code
Message-ID:  <Pine.BSF.4.21.0209050143320.1450-100000@root.org>

next in thread | raw e-mail | index | archive | help
I have rewritten the scsi_target driver and usermode client with a much
simpler model suggested by Justin Gibbs.  The kernel driver receives
commands in the form of CCBs via write(2) and returns completed CCBs to
usermode via read(2).  The included sample client is much simpler as well,
implementing only RBC (simple hard drive command set).

What is this useful for?  It allows anyone with an HBA to emulate various
SCSI target devices for reverse engineering initiator implementations,
debugging, host-host communication, and many other uses.  Because it
operates at the CAM layer, it should work with multiple transports
(parallel SCSI, FC, ...)

Currently, the code works to the point of passing camcontrol rescan and a
few reads and writes with two Adaptec 2940U2Ws (ahc driver).  However,
there is an unknown bug where after a few commands (even just TUR), the
target hangs after sending a CTIO and the initiator aborts the
command.  As such, the code is ALPHA QUALITY and may hang your system.

For more information, see the included README and manpages.  Comments are
needed and appreciated.

http://www.root.org/~nate/freebsd/

-Nate


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0209050143320.1450-100000>