From owner-freebsd-scsi@FreeBSD.ORG Mon Mar 22 06:07:52 2004 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A133A16A4CE for ; Mon, 22 Mar 2004 06:07:52 -0800 (PST) Received: from web21107.mail.yahoo.com (web21107.mail.yahoo.com [216.136.227.109]) by mx1.FreeBSD.org (Postfix) with SMTP id 7B55143D2F for ; Mon, 22 Mar 2004 06:07:52 -0800 (PST) (envelope-from materribile@yahoo.com) Message-ID: <20040322140752.19812.qmail@web21107.mail.yahoo.com> Received: from [24.228.74.10] by web21107.mail.yahoo.com via HTTP; Mon, 22 Mar 2004 06:07:52 PST Date: Mon, 22 Mar 2004 06:07:52 -0800 (PST) From: Mark Terribile To: Mahesh , freebsd-scsi@freebsd.org In-Reply-To: <011f01c40f00$567659f0$63221a9c@mahesh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: target driver question X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 14:07:52 -0000 Mahesh, > I am working on the master's project and would like to do on Linux fiber > channel target emulator.is there source code for this which I can work > on ..or download site where I can test. please suggest as to how should > I go in implementing this. The problem with Linux and target mode is that there are at least two parts to a target mode solution. You need the ability to operate the interface card's target mode capabilities, but you also need the SCSI target mode framework from which to operate them. The latter is what Linux lacks, and the direction(s) the Linux developers have chosen for their overall SCSI architecture will make it difficult to create one. Getting it accepted by the guardians of the Linux source tree is a further hurdle, but one that would be a major contribution (IMO), since it would serve the writers of ALL SCSI device drivers. The Linux people have chosen to replace the CAM reference model with something else, and the contribution that CAM makes to FreeBSD's SCSI architecture is not there. Here are some places to start: look at the isp(4) driver, which has (or had) a device interface level shared between Linux and FreeBSD. See how the target mode code works with the FreeBSD target mode facilitiies and then see what is lacking in Linux. I spent over a month trying to make the pieces line up, but you might have more time; I don't know. Google the web and the newsgroups for 'linux scsi target mode' and pick up some of the discussions about the subject. Check out the code from the University of New Hampshire's Interoperability Lab. They are concentrating on iSCSI-over-FC, and neglecting actual SCSI work, but you may pick up some clues. Good luck. I'd be glad to hear how your work turns out. Mark Terribile __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html