Hi all,
I'm a CS student and I'm trying to understand and locate the source
code for iSCSI connection establishment. But I encountered the
following problem. Could anyone maybe show me where I should go? Any
help would be highly appreciated!!
1. I searched in the entire open-iscsi project and added a "fprintf
(stderr, "Msg No.%d", msg_num);" after each connect() all. But after I
made the project and made install, I still couldn't see any of the
messages from fprintf when I tried to "iscsiadm -m discovery -t st -p
<portal>" or "iscsiadm -m node -T <TargetName> -p <portal> --
login"...
2. Since the first method failed, I tried to trace the source code
nearby the login messages "Logging in to [iface:" and "Login to
[iface: .... successful" and I ended up with the function
"static int __login_portals(void *data, int *nr_found,
struct list_head *rec_list,
int (* login_fn)(void *, struct list_head *,
struct node_rec *))"
Is this the function that establishes the connection for login?
3. When tracing the code in the above function, i was lost in finding
out what "login_fn" does. I googled but found no info... Could anyone
tell me something about it?
Thanks a lot! Any help would be appreciated.
Jack
--
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.