On Tue, 2005-02-15 at 15:29 -0800, Joe Scsi wrote: > I see the internal changes to scsi_scan.c that this refers to, but > I'm not totally clear on what a driver should do to allocate a target > and scan it when it finds out about a new target port.
A driver doesn't allocate a target. In this code, a target device is purely a LUN container and is managed by the mid-layer. The driver requests the scan of a target by parent device, channel and id. This request for a scan creates and parents the target object, but reaps it again if no actual LUNs are discovered. James - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

