On 09/05/2011 01:29 PM, Vivek S wrote: > Hi, > > Who fills up the iscsi_transport structure ? > > I am having difficulty in finding the function pointed to by tgt_dscvr > function pointer in iscsi_transport structure. >
If you are doing cleanup or fixing a bug you can probably ignore that specific code. It was used by qla4xxx for send targets discovery, but in the current git tree, qla4xxx now uses the same code path as be2iscsi and the other offload drivers. The iscsi_transport struct is filled in by iscsi_sysfs.c:read_transports(). That is called in sort of a hacky way right now. It is basically called anytime we think we need to access the iscsi_transport and it tries to set things up for all transports. I would like to change how we do transport setup so that we when we first use a transport we load the iscsi kernel module (do a modprobe of the kernel module) and then also setup the iscsi_transport struct. -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/open-iscsi?hl=en.
