summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctld/ctld.h
Commit message (Collapse)AuthorAgeFilesLines
* MFC r326276:eadler2018-03-051-0/+2
| | | | | | | | | | | | | | | | various: general adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended.
* MFC r316677: Do not register in CTL portal groups without portals.mav2017-04-241-1/+1
| | | | | | From config synthax point of view such portal groups are not incorrect, but they are useless since can not receive any connection. And since CTL port resource is very limited, it is good to save it.
* Don't cap FirstBurstLength to maximum MaxRecvDataSegmentLength claimedtrasz2016-06-091-0/+1
| | | | | | | by the offload driver; there is no reason to do so, and it actually harms performance. MFC after: 1 month
* Report negotiated MaxBurstLength and FirstBurstLength in "iscsictl -v"trasz2016-06-051-0/+1
| | | | | | and "ctladm islist -v" outputs. MFC after: 1 month
* Add an additional, libucl-based configuration file parser to ctld.jceel2016-02-031-1/+3
| | | | | | | | | | | | Default ctld behavior remains unchanged - libucl parser can be selected explicitly by adding -u switch to ctld command line. Reviewed by: trasz Approved by: trasz (mentor) MFC after: 1 month Relnotes: yes Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D4534
* Introduce portal group options in ctl.conf.mav2015-11-091-12/+12
| | | | | | 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.
* Set default block size for CD to expected 2048 bytes.mav2015-10-021-0/+1
|
* Add to CTL initial support for CDROMs and removable devices.mav2015-09-271-0/+2
| | | | Relnotes: yes
* When updating port, apply only change of LUN map, not whole.mav2015-09-131-1/+1
|
* Add two new portal group options "tag" and "foreign".mav2015-09-071-0/+2
| | | | They are going to be useful in clustered setups.
* Allow LUN options modification via CTL_LUNREQ_MODIFY.mav2015-09-061-1/+1
| | | | Not all changes take effect, but that is a different question.
* Remove OpenSSL dependency from iscsid(8) and ctld(8).trasz2015-07-031-2/+2
| | | | | | | | Differential Revision: https://reviews.freebsd.org/D2866 Submitted by: Tony Morlan <tony at scroner.com> (earlier version) Reviewed by: bapt@, delphij@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Move the "offload" clause from the target section to portal-grouptrasz2015-02-281-3/+3
| | | | | | | section; it makes more sense there. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Remove unused code.trasz2015-02-121-1/+0
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Teach ctld(8) to control non-iSCSI CTL ports.mav2015-02-071-1/+21
| | | | | | | | | | | | | | | | 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. MFC after: 2 weeks Relnotes: yes Sponsored by: iXsystems, Inc.
* Make it possible to set (via ctl.conf(5)) and query (via ctladm islist -v)trasz2015-02-061-0/+6
| | | | | | | | | target iSCSI offload. Add mechanism to query maximum receive data segment size supported by chosen hardware offload module, and use it in ctld(8) to determine the value to advertise to the other side. MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Add support for multiple portal groups per target.mav2015-02-061-8/+27
| | | | | | | | | | | 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. MFC after: 2 weeks Sponsored by: iXsystems, Inc.
* Bring some more order into iSCSI portal group tags support.mav2015-02-031-1/+0
| | | | | | | | While ctld(8) still does not allow multiple portal groups per target to be configured, kernel should now be able to handle it. MFC after: 2 weeks Sponsored by: iXsystems, Inc.
* CTL LUN mapping rewrite.mav2015-02-011-5/+14
| | | | | | | | | | | | | | | | | | | | | 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. Discussed with: trasz MFC after: 2 weeks Relnotes: yes Sponsored by: iXsystems, Inc.
* For both iSCSI initiator and target increase socket buffer sizes beforemav2014-11-221-0/+1
| | | | | | | | | | | 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 after: 1 week
* Add support for sending redirections to iSCSI target.trasz2014-11-091-0/+6
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Simplify code; no functional changes.trasz2014-10-291-2/+2
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Add discovery-filter. This makes it possible to restrict which targetstrasz2014-10-291-0/+11
| | | | | | | | | are returned during discovery based on initiator portal, name, and CHAP credentials. Reviewed by: mav@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Add basic iSNS client to the iSCSI target.mav2014-10-251-0/+17
| | | | | | | | | | | | This makes ctld(8) register its iSCSI targets and portals on configured iSNS servers to allow initiators find them without active discovery. Fetching of allowed initiators from iSNS is not implemented now, so target ACLs still should be configured manually. Reviewed by: trasz@ MFC after: 1 month Sponsored by: iXsystems, Inc.
* Make the initiator-name and initiator-portal checks a little nicer.trasz2014-10-241-0/+4
| | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Untangle iSCSI authentication code by splitting off the CHAPtrasz2014-10-221-0/+30
| | | | | | | | implementation. Reviewed by: mav@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
* Add netmasks support to initiator-portal option.mav2014-07-281-2/+5
| | | | MFC after: 2 weeks
* Pass through iSCSI session ISID from LOGIN request to the CTL frontend.mav2014-07-051-0/+1
| | | | | ISID is an important part of initiator transport ID for iSCSI. It is not used now, but should be to properly implement persistent reservation.
* Create separate CTL port for every iSCSI target (and maybe portal group).mav2014-07-051-2/+2
| | | | | | | | | | | | | | | Having single port for all iSCSI connections makes problematic implementing some more advanced SCSI functionality in CTL, that require proper ports enumeration and identification. This change extends CTL iSCSI API, making ctld daemon to control list of iSCSI ports in CTL. When new target is defined in config fine, ctld will create respective port in CTL. When target is removed -- port will be also removed after all active commands through that port properly aborted. This change require ctld to be rebuilt to match the kernel. As a minor side effect, this allows to have iSCSI targets without LUNs. While that may look odd and not very useful, that is not incorrect.
* Constify.trasz2014-04-161-5/+8
| | | | Sponsored by: The FreeBSD Foundation
* Properly pass the initiator address when running in proxy mode.trasz2014-04-161-4/+9
| | | | Sponsored by: The FreeBSD Foundation
* Rework the way we enable CTL iSCSI port. Previously conf_apply()trasz2014-04-161-0/+1
| | | | | | | | | | | needed it to be already enabled, because listening in proxy mode requires it; however, it's conf_apply() that opens pidfiles, so it resulted in port being enabled before pidfile was opened. This was not so bad, but it was also disabled when pidfile couldn't be opened due to ctld already running; this means that starting second ctld instance screwed up the first. Sponsored by: The FreeBSD Foundation
* Properly identify target portal when running in proxy mode. While here,trasz2014-04-161-2/+9
| | | | | | remove CTL_ISCSI_CLOSE, it wasn't used or implemented anyway. Sponsored by: The FreeBSD Foundation
* Use new auth-type "deny" instead of using "chap" with no chap entries;trasz2014-02-111-3/+4
| | | | | | it's cleaner this way, and gives better feedback to the user. Sponsored by: The FreeBSD Foundation
* Make it possible to redefine portal-group "default".trasz2014-02-111-0/+3
| | | | Sponsored by: The FreeBSD Foundation
* Add auth-type.trasz2014-02-111-0/+2
| | | | Sponsored by: The FreeBSD Foundation
* Rename a variable, no functional changes.trasz2014-02-111-3/+3
| | | | Sponsored by: The FreeBSD Foundation
* Implement initiator-name and initiator-portal restrictions.trasz2014-02-111-0/+26
| | | | Sponsored by: The FreeBSD Foundation
* The log_whatever() routines don't accept NULL for format strings,trasz2014-02-111-4/+4
| | | | | | so mark them as __printflike instead of__printf0like. Sponsored by: The FreeBSD Foundation
* Bring in the new iSCSI target and initiator.trasz2013-09-141-0/+277
Reviewed by: ken (parts) Approved by: re (delphij) Sponsored by: FreeBSD Foundation
OpenPOWER on IntegriCloud