summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* doc: remove wiki referenceMike Christie2009-02-221-4/+1
| | | | | The wiki is down and probably dead for good. This removes a bad link to it.
* docs: update readme with libiscsi_tcp infoMike Christie2009-02-221-3/+3
| | | | | There is a new module, libiscsi_tcp, that is installed. This updates the README.
* iscsid: mv event loop code to new fileMike Christie2009-02-228-99/+163
| | | | | | | The event code does not belong in the mgmt ipc code, because the event code now handles mgmt ipc, requests, actor events, isns events, kernel ipc events. This moves the code to a new file.
* iscsid: flush sysfs cache.Mike Christie2009-02-222-2/+8
| | | | | | After handling an event we should flush the sysfs cache because the device links could change or the attr values could change due to handling the event.
* iscsi tools: update version in preparation for new releaseMike Christie2009-02-211-1/+1
| | | | Update version to 871.
* docs: fix up iscsiadm man page iface infoMike Christie2009-02-211-1/+2
| | | | | | When the offload iface settings changed the doc page got misedited. This should fix it and add some info on what the hw address is.
* iscsid: Fix up connection failed messagesMike Christie2009-02-071-3/+9
| | | | | The connection failed message did not say which connection failed. This has it print out the portal and a strerror value.
* iscsi tool make: add notification that iscsi start was madeMike Christie2009-02-071-0/+1
| | | | When doing a make notify user that iscsistart was built.
* iscsi tools: convert from strncpy to strlcpyMike Christie2009-02-0713-72/+81
| | | | This has us use a safer strlcpy instead of strncpy when we can.
* iscsi tools: convert from strncat to strlcatMike Christie2009-02-079-22/+41
| | | | | We messed up strncat in so many different ways that strlat could fix. This patch converts the userspace uses of strncat to strlcat.
* open-iscsi: Makefile: separate out user: and kernel: make targetsBoaz Harrosh2009-02-071-11/+14
| | | | | | | | Separate out the build of "kernel:" and "user:" targets. [Mike please revisit the @echo output if we need anything added] Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
* iscsi mod: 2.6.14-19 compatMike Christie2009-02-071-17/+18
| | | | Fix compat patch that was broke from the eh timed out patch.
* 2.6.29-rc libiscsi: Fix scsi command timeout oops in iscsi_eh_timed_outMike Christie2009-02-071-1/+2
| | | | | | | Merge upstream fix for command timeout oops (iscsi command does not oops, but if a command from another driver timesout that will oops, because iscsi was missetting the default transportt to its time out handler).
* PATCH: fix iBFT firmware reading with newer kernelsMike Christie2009-02-021-27/+34
| | | | | | | | | | | | | | | | Patch and mail from Hans De Goede: Hi, While testing I noticed that "iscsiadmin -m fw" does not work properly on newer (rawhide atleast) kernels, the attached patch (already applied to the Fedora devel packages) fixes this. Regards, Hans
* PATCH: iscsi tools: do not use exit()Mike Christie2009-01-292-19/+60
| | | | | | | | | | | | | | | | | | | | From Hans De Goede Hi All, While testing I noticed that idbm_lock() uses exit when it cannot lock, leading to interesting effect when using it from libiscsi, when typing "import libiscsi" in python as normal user, my entire python interpreter exited, not good. The attached patch instead returns an error code, and fixes all callers to check this. Regards, Hans
* iscsi tools: fix chapMike Christie2009-01-292-0/+6
| | | | | | | | | | This fixes a regression with 45160e00347fa48c0faf7bbd376fe220212bc0a2 (not in any open-iscsi.org version), where the password length fields were not getting set so passwords could not get reset and could not get passed to iscsid correctly (iscsid would then not try chap).
* build: add a make userMike Christie2009-01-231-9/+15
| | | | | | | | | | | | | Users may want to install the userspace tools but use the distro kernel modules. This adds a make user to build the userspace tools. And it adds a make user_install to install the userspace tools.
* iscsi mod iscsi_tcp: compat fix for pI4/pI6Mike Christie2009-01-211-1/+10
| | | | pI4/pI6 was added 2.6.29. This patch just adds some ifdefs.
* iscsi mod: fix up 2.6.14-19 compat patchMike Christie2009-01-211-3/+3
| | | | | Patch was not completely made to apply from the kernel dir. This fixes the scsi_transport_iscsi.c patch application error.
* iscsi mod: 2.6.14-19 compatMike Christie2009-01-211-209/+229
| | | | Add 2.6.14-19-compat support.
* iscsi mod: 2.6.20-23 compatMike Christie2009-01-211-166/+206
| | | | Add 2.6.20-23 compat
* iscsi mod: 2.6.24-25 compatMike Christie2009-01-211-164/+204
| | | | Add 2.6.24-25 compat
* iscsi mod: 2.6.26 compatMike Christie2009-01-211-10/+69
| | | | Add 2.6.26 compat
* iscsi mod: 2.6.27 compatMike Christie2009-01-212-2/+75
| | | | | | Add 2.6.27 compat Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
* iscsi mod: sync up kernel modules with 2.6.29Mike Christie2009-01-2110-1573/+1946
| | | | | This takes the iscsi modules that are planned for 2.6.29 and adds them to the kernel dir.
* idbm: have idbm_rec_update_param update the value string of the matching ↵Mike Christie2009-01-191-0/+3
| | | | | | | | | | | rec_info From Hans De Goede: fix for idbm_rec_update_param, to update the value string of the matching rec_info. Not doing this does not cause any issues in the current use of this method, but still it seems better to me to update this.
* iscsid: update transport handleMike Christie2008-12-051-15/+30
| | | | | | | This updates the transport handle when we do the handle check, so if the module is unloaded we pick up the new value. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
* iscsiadm: print session and session info running through ifaces in iface modeMike Christie2008-12-0511-383/+547
| | | | | | | | | | | | | | | | | If you run iscsiadm -m iface -P 1 or iscsiadm -m iface -I $my_iface -P 1 we print the iface info and if possible the host number and state (only for offload hbas). The P2 level will print the session running through a iface. The P3 level will print the negotiated iscsi params for each session. The P4 level will print the scsi devices accessed through each session.
* iscsid/iscsiadm: support multiple inititor names per host.Mike Christie2008-12-052-15/+71
| | | | | | | | | | | | | | If bnx2i and cxgb3i do a scsi_host per host device, we need to add the iface initiator port settings on the session, so we can create multiple initiator ports (each with different inames) per device/scsi_host. The current iname reflects that qla4xxx can have one iname per hba, and we were allocating a host per session for software. The iname on the host will remain so we can export and set the hba level qla4xxx setting. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
* iscsiadm: remove default bnx2i ifaceMike Christie2008-12-051-11/+0
| | | | | | | | | The default bnx2i iface is not going to be useful, because we are going to have to set the ipaddress of each bnx2i port and so there cannot be a generic iface with only a transport name setting. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
* userspace - setting interface ip addressKaren Xie2008-12-054-20/+68
| | | | | | | | | | | | | | | Enable setting of the ip/mac address for iscsi traffic on a network interface via iface files. The format of the iface files is: iface.transport_name = <transport name> iface.net_ifacename = <ethX> iface.ipaddress = <ip adress> iface.hwaddress = <mac adress> This patch is based on the master branch of the git tree. Signed-off-by: Karen Xie <kxie@chelsio.com> Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
* userspace - add new transport cxgb3iKaren Xie2008-12-054-8/+33
| | | | | | | | | added new transport cxgb3i. This patch is based on the master branch of the git tree. Signed-off-by: Karen Xie <kxie@chelsio.com> Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
* iscsid: fix logout response and time2wait handlingMike Christie2008-12-031-5/+6
| | | | | | | | We were unconditionally using the time2wait value when we should only use it if we are not erl0 and it is set or if the response code is 2 or 3. This fixes a bug that occurs when running with the Astute target.
* iscsid/iscsiadm: fix strto* usageMike Christie2008-11-281-5/+5
| | | | | | | If the strto* functions returned the max than it could be valid value and the sysfs code would have returned error. The man pages said to set errno then check it. For the get int function I just used atoi.
* iscsi modules: fix compilationMike Christie2008-11-271-0/+2
| | | | | | | | I added a stdint include so that it would be easier to compile userspace apps including iscsi_proto.h, but that breaks the kernel compilation. Since this iscsi_proto.h is only used in open-iscsi releases I am just adding a ifdef __KERNEL__.
* iscsiadm: fix output orderingMike Christie2008-11-263-31/+6
| | | | | | | | Commands that printed out records were mixing up the ordering. This just has us use alphasort since it is safe for things like uclibc and we do not really care about the alphabetical ordering and are more concerned with targets/portals that are alike being grouped together.
* iscsiadm: have fw discovery handle --op argumentsMike Christie2008-11-262-28/+63
| | | | | | | | | | | | | | This had the iscaidm -m discovery -m fw comman handle the --op arguments. It also has it handle the -I argument, but it is a little strange, and it is not fully supported. The problem is that we currently do not assume that the net info in the firmware means that we want to bind the session to a specific nic, so with the -I a user can bind the session and the net info in the firmware is completely ignored. We probably need an extra flag to indicate if the user wants iscsiadm to setup ifaces based on the firmware info and then also bind the session to them.
* iscsiadm: discovery mode supports the --showMike Christie2008-11-261-1/+1
| | | | | If we want to see the discovery chap info we need to support --show/-S.
* iscsid idbm: move record strings to headerMike Christie2008-11-264-113/+193
| | | | | This just moves the idbm record field strings to a common file, so idbm and fw_entry can share them.
* fwparam: rm unused filepath argumentMike Christie2008-11-263-4/+3
| | | | fw_get_entry's filepath is always NULL, so this patch removes it.
* ibft: add support to use iscsi_ibft module and log into all portals found in ↵Mike Christie2008-11-2619-328/+1016
| | | | | | | | | | | | | | | | | | | | | firmware This adds the ibft sysfs module (iscsi_ibft) parsing support. It was original done by Konard, but I have ported it to use the sysfs.c helpers (add new ones and ported iscsi_sysfs.c too). This patch also modifies iscsistart and iscsiadm to print/log into all the portals found in firmware. It also changes the behavior of iscsiadm -m discovery -t fw so that we create db records for what is found. It is not fully hooked into the iface code, so it will use the different inititor name, but it will not create a iface for it (this means that if you have a record for the same portal that is bound to a iface with a iname you can run into problems).
* iscsid idbm: print out header and tail to seperate recordsMike Christie2008-11-261-0/+2
| | | | | | | | | | | | | | | | | | | When printing multiple records like with iscsiadm -m node -T my_target (will dump all records for that target), the records are clumped together and the only way to parse them is by assuming that the node.name field indicates the beginning of a new record. This just adds a "# BEGIN RECORD" at the begining and a "# END RECORD" at the end of a record.
* iscsid: fix relogin retry handlingMike Christie2008-11-223-21/+14
| | | | | | | | This has iscsid always retry the relogin if we have logged in previously. This also fixes a problem where for the initial login we retry too much (for reopen cnt) when we just want to try once for fatal errors like where the target is not there or the chap values are bad.
* Update Changelog for new release.Mike Christie2008-11-041-3/+75
|
* rm unused variable in fw_entry.cErez Zilber2008-10-221-2/+0
| | | | Signed-off-by: Erez Zilber <erezzi.list@gmail.com>
* Minor fixes in iscsi_discovery documentationErez Zilber2008-10-222-8/+8
| | | | | | | Some changes that were made in iscsi_discovery were not reflected in the docs. Signed-off-by: Erez Zilber <erezzi.list@gmail.com>
* Fix initiator.c compile warningMike Christie2008-09-301-1/+1
| | | | | A log_error message had a extra "," which was causing compile warnings.
* PATCH: add error checking to iscsi discovery db lock creationHans de Goede2008-09-301-0/+8
| | | | | | | | | | | | | | | | | | | | Hi Make, I've been bitten numerous times now by iscsiadm hanging when run as normal user (it spins trying to create the lock, which will never succeed as it simple misses the rights todo so). I plan on including the attached patch in the new rawhide / F-10 package with the new initscripts I'm working on. Please scream loudly if you object against this patch. Regards, Hans p.s. If we go ahead with this patch I assume you will take care of getting it upstream.
* update 2.6.24_compat.patchMike Christie2008-09-251-58/+60
| | | | data corruption fix broke compat patches.
* update 2.6.20-21_compat.patchMike Christie2008-09-251-57/+59
| | | | data corruption fix broke compat patches.