[Stgt-devel] Re: SCSI Target framework configuration
Mike Christie
michaelc at cs.wisc.edu
Tue Aug 23 03:21:44 CEST 2005
FUJITA Tomonori wrote:
>
> Really sorry for novice questions again.
>
> How do 'iscsi_target_class' (similar to scsi_transport_iscsi.c) and
> 'scsi_target_class' work together?
oh yeah I think there will be....
stgt core strucutre attributes: these are things like scatter list limits
that the target_drivers have or the device type (I mean disk vs tape for
example). For these we have two classes stgt_target_class and
stgt_device_class.
stgt_target_class attrs - target values like max commands a target can
queue. A target driver can override these or add extra ones.
stgt_device_class attrs = device values like capacity. Again
a target driver can override these or add new ones.
transport attributes:
These will most commonly be ones like open-iscsi's iscsi_session or
connection class that export information about the iSCSI session or
connection. Common values are ones found in the iSCSI RFC. Also like the
FC's rport class. The LLD will call functions to add these as necessary.
The other types of tranport class attrs could be ones that go along
with the stgt core strucutures like how the fc_host and scsi_host work.
For example there could be a iscsi_stgt_target class that exports
some value specific to all iSCSI targets. Example for this one maybe
iSCSI target name (although if we push all that code to userspace target
name is not really needed in the kernel)?
More information about the stgt
mailing list