summaryrefslogtreecommitdiff
path: root/usr/iscsi_util.h
Commit message (Collapse)AuthorAgeFilesLines
* iscsi tools: Bug fix on IPC address copy (version 2)Mike Christie2013-12-221-0/+3
| | | | | | | | | | | This patch merges Yufei Ren <yufei.ren@stonybrook.edu> patch with comments from the list plus what I think is a bug in the addr_len usage. For the addr_len use, it looks like we were using that as the arg to memcpy, but that value included the length of the pathname string and also the offset of sun_path in the sockaddr_un and so that is too long.
* Implement leading-login supportJim Ramsay2011-07-071-0/+1
| | | | | | | | | | | | | | Leading-login only takes effect when performing "login-by-startup" (ie, iscsiadm -m node -L ...). For any nodes with the new 'node.leading_login' config value set to "Yes" (The default is "No"), a login attempt will be made on each successive iface record until one succeeds. The intent is to only have a single iSCSI session for each configured target at startup but also allow for fallthrough to alternate ifaces in case of network issues. Signed-off-by: Jim Ramsay <jim_ramsay@dell.com>
* Add new node.session.nr_sessions config parameterJim Ramsay2011-07-071-0/+1
| | | | | | | | | | If a record has this set to anything other than the default value of 1, performing a login with this record will ensure that at least that number of sessions are present for that recordr: The code counts the number of sessions currently active for this record, and will perform multiple logins if the count is less than nr_sessions. Signed-off-by: Jim Ramsay <jim_ramsay@dell.com>
* Add specific session information to session_rec_tJim Ramsay2011-07-071-1/+4
| | | | | | | | | | This is populated by iscsiadm in 'session' mode when the '-r' options is given, and passed along in the session_rec_t. It limits the operation of exec_node_op to only the specific session specified by the user. This is a prerequisite for "multiple sessions per iface recond". Signed-off-by: Jim Ramsay <jim_ramsay@dell.com>
* iscsi tools: use open-isns servicesMike Christie2010-03-221-0/+24
This replaces the native isns code with open-isns's libisns. I included the open-isns code in the open-iscsi tarball to make distribution easier since some distros use different isns clients and may not want to carry open-isns. This is based on open-isns commit 5e09f36d3446e41de0b8361601ffec4cd140d513. Changes in iSNS behavior/use: - To do discovery you must pass the ip and optionally the port to iscsiadm: iscsiadm -m discovery -t st -p 10.15.0.9 This command accepts the same ops as sendtargets so you can add/remove/update the node records that are created. It also supports ifaces properly now. - isns.address and isns.port in iscsid.conf are no longer used. - ESI is temporarily not supported. This will be fixed in the next patch when SCNs support is added. - The iscsiadm isns discovery command is not marked as stable. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>