target driver question

Chuck Tuffli chuck_tuffli at agilent.com
Wed Jan 14 12:39:44 PST 2004


Hi -

I'm creating a target driver and ran across something that can be
trivially fixed, but which makes me wonder if I don't understand what
is going on.

When this driver receives a CDB, it needs to save away some information
specific to that IO for later use in the CONT_TARGET_IO phase. I
mistakenly thought that the ccb that the driver passed up in ATIO
would be the same ccb that it would get back for CTIO. As such, the
driver saved away a pointer to the IO specific info it needed in
ccb->ccb_h.sim_priv.entries[0].ptr

It would be easy enough in scsi_target(8) to copy  the SIM private
data from the ATIO structure to the CTIO structure. Is this the right
thing to do though? Thanks!

-- 
Chuck Tuffli    <chuck_tuffli AT NO_SPAM agilent DOT com>
Agilent Technologies, Storage Area Networking


More information about the freebsd-scsi mailing list