summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctld
Commit message (Collapse)AuthorAgeFilesLines
* MFC r289677:bdrewery2016-01-071-1/+1
| | | | Fix a ton of speelling errors
* MFC r290615: Introduce portal group options in ctl.conf.mav2015-11-275-77/+99
| | | | | | While CTL has concept of port options, used at least for iSCSI ports now, before this change it was impossible to set them manually. There still no user-configurable port options now, but I am planning to change that.
* MFC r288486, r288488: Set default block size for CD to expected 2048 bytes.mav2015-10-053-2/+6
|
* MFC r288310: Add to CTL initial support for CDROMs and removable devices.mav2015-10-056-4/+49
| | | | Relnotes: yes
* MFC r288259: Remove some duplicate, legacy, dead and questionable code.mav2015-10-051-1/+1
|
* MFC r288061: Make cltd ignore HA ports.mav2015-10-051-1/+7
|
* MFC r287823: Add ctl-lun config option for consistency in HA setups.mav2015-10-055-3/+36
|
* MFC r287766: Add negotiation of iSCSIProtocolLevel to 2 (RFC7144).mav2015-10-051-0/+5
| | | | | We may need to pass negotiated value to kernel level, but so far it is not necessary, since it does not use any new features without request.
* MFC r287757: When updating port, apply only change of LUN map, not whole.mav2015-10-053-3/+11
|
* MFC r287534: Add two new portal group options "tag" and "foreign".mav2015-10-055-7/+58
| | | | They are going to be useful in clustered setups.
* MFC r287500: Allow LUN options modification via CTL_LUNREQ_MODIFY.mav2015-10-053-14/+35
| | | | Not all changes take effect, but that is a different question.
* MFC r287455, r287458, r287459: Remove some dead code.mav2015-10-051-1/+0
|
* MFC r286806: Drop "internal" CTL frontend.mav2015-10-051-1/+0
| | | | | | Its idea was to be a simple initiator and execute several commands from kernel level, but FreeBSD never had consumer for that functionality, while its implementation polluted many unrelated places.
* MFC r281532 (by delphij): Eliminate unused headers.mav2015-10-057-14/+0
|
* MFC r279314 (by trasz): Add missing error check.mav2015-10-051-1/+4
|
* MFC r278622 (by trasz): Remove unused code.mav2015-10-052-21/+0
|
* MFC 288208jpaetzel2015-09-251-1/+1
| | | | | | Fix typo. Sponsored by: iXsystems
* MFC r286462: Refactor early stages of security negotiation.mav2015-08-221-73/+77
|
* MFC r286456: Remove some code duplication.mav2015-08-151-7/+1
|
* MFC r282086:trasz2015-08-031-3/+0
| | | | | | | | | Make setproctitle(3) work in Capsicum capability mode. This makes ctld(8) child processes to indicate initiator address and name in their titles, similar to what iscsid(8) child processes do. PR: 181352 Sponsored by: The FreeBSD Foundation
* MFC r284542:trasz2015-08-031-1/+1
| | | | | | | | Allow '@' in unquoted strings, such as with the "path" statement. Note that one can use any character they like by using double quotes. PR: 200895 Sponsored by: The FreeBDS Foundation
* MFC r285086:trasz2015-08-033-29/+16
| | | | | | Remove OpenSSL dependency from iscsid(8) and ctld(8). Sponsored by: The FreeBSD Foundation
* MFC r284765, r284875:mav2015-06-282-7/+27
| | | | | | | | Teach ctld about CTL's physical_port and virtual_port fields. This allows ctld to work with isp(4) virtual ports, specifying them as isp0/1, isp0/2, etc. There are still problems on isp(4) layer with disabling those ports after enabling, but hopefully they can be fixed.
* MFC r283285:trasz2015-06-211-2/+3
| | | | | | Advertise ctlstat(8) a little better. Sponsored by: The FreeBSD Foundation
* MFC r281820:trasz2015-06-201-3/+9
| | | | | | Add hint about "volmode=dev" to ctl.conf(5). Sponsored by: The FreeBSD Foundation
* MFC r281163: Make ctld to not exit on ECONNABORTED on accept().mav2015-04-131-1/+4
| | | | That is not really an error for the main process.
* MFC 281084jpaetzel2015-04-071-1/+1
| | | | | | | | | | Fix thinko/copypaste error. When checking the length of the mutual secret password the variable for the secret password was used by mistake. This resulted in ctld never warning about the length of the mutual secret being wrong even if it was. Sponsored by: iXsystems
* Merge an applicable subset of r263234 from HEAD to stable/10:rwatson2015-03-191-1/+1
| | | | | | | | | | | | | Update most userspace consumers of capability.h to use capsicum.h instead. auditdistd is not updated as I will make the change upstream and then do a vendor import sometime in the next week or two. Note that a significant fraction does not apply, as FreeBSD 10 doesn't contain a Capsicumised ping, casperd, libcasper, etc. When these features are merged, the capsicum.h change will need to be merged with them. Sponsored by: Google, Inc.
* MFC r279591: Add example configuration for FibreChannel ports.mav2015-03-111-6/+8
|
* MFC r279590: If target name starts with "naa.", set it as WWNN for CTL port.mav2015-03-111-1/+13
|
* MFC r279589: Fix handling of queued text and logout requests.mav2015-03-111-0/+4
| | | | | While it may have little sense, text and logout requests can be queued. If they are, they consume cmdsn, so we should increment our conn_cmdsn.
* MFC r279276: Add checks for malloc() failures.mav2015-03-011-0/+5
| | | | Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
* MFC r279277: Fix memory leak on incorrect initiator portal.mav2015-03-011-0/+1
| | | | Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
* MFC r278594: Add missing asprintf() status checks.mav2015-02-201-2/+8
|
* MFC r278354: Teach ctld(8) to control non-iSCSI CTL ports.mav2015-02-206-72/+257
| | | | | | | | | | | | | | | This change introduces new target option "port", that assigns current target to specified CTL port. On config application ctld(8) will apply LUN mapping according to target configuration to specified port and bring the port up. On shutdown cltd(8) will remove the mapping and put the port down. This change allows to configure both iSCSI and FibreChannel targets in the same configuration file in alike way. Kernel side support was added earlier at r278037. Relnotes: yes Sponsored by: iXsystems, Inc.
* MFC r278322: Add support for multiple portal groups per target.mav2015-02-197-111/+279
| | | | | | | | | | This change allows multiple "portal-group" options to be specified per target. Each of them may include new optional auth-group name parameter to override per-target auth parameters for specific portal group. Kernel side support was added earlier at r278161. Sponsored by: iXsystems, Inc.
* MFC r278161: Bring some more order into iSCSI portal group tags support.mav2015-02-193-10/+16
| | | | | | | While ctld(8) still does not allow multiple portal groups per target to be configured, kernel should now be able to handle it. Sponsored by: iXsystems, Inc.
* MFC r278037: CTL LUN mapping rewrite.mav2015-02-195-305/+358
| | | | | | | | | | | | | | | | | | | Replace iSCSI-specific LUN mapping mechanism with new one, working for any ports. By default all ports are created without LUN mapping, exposing all CTL LUNs as before. But, if needed, LUN mapping can be manually set on per-port basis via ctladm. For its iSCSI ports ctld does it via ioctl(2). The next step will be to teach ctld to work with FibreChannel ports also. Respecting additional flexibility of the new mechanism, ctl.conf now allows alternative syntax for LUN definition. LUNs can now be defined in global context, and then referenced from targets by unique name, as needed. It allows same LUN to be exposed several times via multiple targets. While there, increase limit for LUNs per target in ctld from 256 to 1024. Some initiators do not support LUNs above 255, but that is not our problem. Relnotes: yes Sponsored by: iXsystems, Inc.
* MFC r274853:mav2015-02-192-1/+12
| | | | | | | | | | For both iSCSI initiator and target increase socket buffer sizes before establishing connection. This is a workaround for Chelsio TOE driver, that does not update socket buffer size in hardware after connection established, and unless that is done beforehand, kernel code will stuck, attempting to send/receive full PDU at once.
* MFC r274804:mav2015-02-191-10/+10
| | | | | | | | | In conf_apply() remove iSCSI ports from kernel before removing LUNs. Previous order confused initiators with messages about "removed" LUNs during simple ctld restart without any real config change. After this commit initiators only reestablish lost connection, receive "Power on occurred" UNIT ATTENTION status and continue normal operation.
* MFC r274791:trasz2015-01-261-3/+22
| | | | | | | | | | | | Add missing error checking for kernel_port_{add,remove}(). Both can fail for reasons yet unknown; don't make it increment cumulated_error as a kind of temporary workaround. MFC r275399: Fix null pointer dereference. Sponsored by: The FreeBSD Foundation
* MFC r275864: Make sequence numbers checks more strict.mav2015-01-032-9/+9
| | | | | | | | While we don't support MCS, hole in received sequence numbers may mean only PDU loss. While we don't support lost PDU recovery, terminate the connection to avoid stuck commands. While there, improve handling of sequence numbers wrap after 2^32 PDUs.
* MFC r274954:trasz2015-01-011-3/+1
| | | | | | | Remove the pidfile clause from the ctl.conf example. Why do everyone just copy/paste this line into their configs, it's beyond me. Sponsored by: The FreeBSD Foundation
* MFC r275925: Slightly polish iSCSI parameters negotiation.mav2014-12-261-1/+1
|
* MFC r275452: Do not corrupt the listen string when parsing it.mav2014-12-101-5/+7
| | | | | This fixes problem with ctld reload when it is configured to listen on two portals with same IP, but different ports.
* MFC r274310:trasz2014-12-091-1/+6
| | | | | | Add HISTORY section to ctld(8). Sponsored by: The FreeBSD Foundation
* MFC r274308:trasz2014-12-096-7/+183
| | | | | | | | | | | Add support for sending redirections to iSCSI target. MFC r274309: Fix several nits in redirection handling - don't use wrong CSG, and avoid use-after-free. Sponsored by: The FreeBSD Foundation
* MFC r274277:trasz2014-12-081-2/+2
| | | | | | ctld(8) doesn't require -lcam or -lssl; remove those from DPADD and LDADD. Sponsored by: The FreeBSD Foundation
* MFC r274248: Remove unused assignments, noticed by Clang analyzer.mav2014-12-051-7/+7
|
* MFC r274278:trasz2014-11-291-4/+5
| | | | | | Improve wording in ctl.conf(5). Sponsored by: The FreeBSD Foundation
OpenPOWER on IntegriCloud