summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctld
Commit message (Collapse)AuthorAgeFilesLines
* 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
* MFC r273822:trasz2014-11-291-0/+1
| | | | | | | Fix iscsictl(8) and ctld(8) to correctly handle Windows newlines (CRLF) in iscsi.conf and ctl.conf. Sponsored by: The FreeBSD Foundation
* MFC r273821:trasz2014-11-291-3/+3
| | | | | | Keep the token list sorted. Sponsored by: The FreeBSD Foundation
* MFC r273820:trasz2014-11-292-1/+12
| | | | | | | | | | | Make it possible to optionally use semicolon to separate statements. This makes it possible to format stuff like this: target xxx { lun 0 { path /foo/bar; size 4G; } } Sponsored by: The FreeBSD Foundation
* MFC r273816:trasz2014-11-293-47/+21
| | | | | | Simplify code; no functional changes. Sponsored by: The FreeBSD Foundation
* MFC r273813:trasz2014-11-297-8/+193
| | | | | | Add discovery-filter. This makes it possible to restrict which targets are returned during discovery based on initiator portal, name, and CHAP credentials.
* MFC r273770:trasz2014-11-271-13/+27
| | | | | | Fix build after previous commit. While here, improve error messages. Sponsored by: The FreeBSD Foundation
* MFC r273768:trasz2014-11-272-30/+59
| | | | | | | | | | Remove the distinction between strings and numbers from ctld(8) yacc parser. This fixes problems with passing strings that look like numbers to clauses that expect strings; previously it caused syntax errors and had to be worked by user, using quotes. The workaround introduced in r267833 is no longer neccessary. Sponsored by: The FreeBSD Foundation
* MFC r273585:trasz2014-11-241-10/+17
| | | | | | Improve ctld.conf example. Sponsored by: The FreeBSD Foundation
* MFC r273470:trasz2014-11-241-4/+4
| | | | | | Fix ctl.conf example to use proper paths to ZVOLs. Sponsored by: The FreeBSD Foundation
* MFC r273467:trasz2014-11-241-4/+4
| | | | | | Comment out parts about iSER; it's not implemented. Sponsored by: The FreeBSD Foundation
* MFC r273584:trasz2014-11-243-20/+36
| | | | | | Make the initiator-name and initiator-portal checks a little nicer. Sponsored by: The FreeBSD Foundation
* MFC 273583:trasz2014-11-241-11/+11
| | | | | | Tidy up the login code; no functional changes. Sponsored by: The FreeBSD Foundation
* MFC r273635, r273793, r274797: Add basic iSNS client to the iSCSI target.mav2014-11-248-46/+761
| | | | | | | | | | | 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. Relnotes: Yes Sponsored by: iXsystems, Inc.
* MFC r274328:mav2014-11-231-1/+50
| | | | | | | Make both iSCSI initiator and target support base64 encoded CHAP data. While all tested initiators and targets use hex-encoded CHAP data, RFC also allows base64 encoding there, and Microsoft certificaition tool uses it.
* MFC r273543:trasz2014-11-221-9/+8
| | | | | | Clean up (refactor) discovery a little; no functional changes. Sponsored by: The FreeBSD Foundation
* MFC r273468:trasz2014-11-221-8/+2
| | | | | | Remove misleading statement. Bump date. Sponsored by: The FreeBSD Foundation
* MFC r273466:trasz2014-11-221-1/+0
| | | | | | Remove spurious empty line. Sponsored by: The FreeBSD Foundation
* MFC r273465:trasz2014-11-221-6/+15
| | | | | | | Fix ctld(8) to not show the "auth-group <name> not assigned to any target" warning for auth-groups assigned to a portal-group. Sponsored by: The FreeBSD Foundation
* MFC r273464:trasz2014-11-225-14/+14
| | | | | | Whitespace fixes. Sponsored by: The FreeBSD Foundation
* MFC r271320:trasz2014-11-221-22/+4
| | | | | | Use keys_add_int() where appropriate. No functional changes. Sponsored by: The FreeBSD Foundation
* MFC r273459:trasz2014-11-224-200/+444
| | | | | | | Untangle iSCSI authentication code by splitting off the CHAP implementation. Sponsored by: The FreeBSD Foundation
* MFC r272911:mav2014-10-201-22/+30
| | | | | | | | Make ctld start even if some LUNs are unable to open backing storage. Such LUNs will be visible to initiators, but return "not ready" status on media access commands. If backing storage become available later, `ctladm modify ...` or `service ctld reload` can trigger its reopen.
* MFC r271797: Make kernel to update LUN size from the backing storagemav2014-09-211-1/+2
| | | | | | | | | on configuration reload also if that size was not specified in the new configuration. Previously it happened only if size was explicitly changed in config. Approved by: re (delphij)
* MFC r271571:trasz2014-09-181-2/+3
| | | | | | | Fix two small nits in ctl.conf(5). Approved by: re (glebius) Sponsored by: The FreeBSD Foundation
* MFC r271445,r271446,r271560:allanjude2014-09-181-121/+191
| | | | | | | | | | Improve markup and language throughout the ctl.conf man page MFC r271543: Add the new iscsi(4) man page Cross reference it from iscsid(8) and iscsictl(8) Approved by: re (gjb), bcr (mentor)
* MFC r271319:trasz2014-09-171-4/+20
| | | | | | | | | | Fix ctld(8) to not forget to send TargetPortalGroupTag and TargetAlias when the initiator skips security negotiation. This fixes interoperability with Xtend SAN initiator. PR: 193021 Approved by: re (marius) Sponsored by: The FreeBSD Foundation
* MFC r271187:trasz2014-09-151-9/+7
| | | | | | | Avoid ctld(8) crash on getaddrinfo(3) failure. Approved by: re (gjb) Sponsored by: The FreeBSD Foundation
* MFC r271169:trasz2014-09-151-7/+3
| | | | | | | | Turn two errors, which are possible to trigger only by bugs, into assertions. Approved by: re (gjb) Sponsored by: The FreeBSD Foundation
* MFC r271157:trasz2014-09-151-2/+2
| | | | | | | Fix typo. Approved by: re (marius) Sponsored by: The FreeBSD Foundation
* MFC r270179:ngie2014-09-021-2/+2
| | | | | | | | | | Add missing libraries to DPADD; sort DPADD so DPADD and LDADD match up This fixes "make checkdpadd" Approved by: jmmv (mentor) Phabric: D630 PR: 192765
* MFC r270279:trasz2014-08-317-7/+21
| | | | | | Make the iSCSI stack use __FBSDID() properly. Sponsored by: The FreeBSD Foundation
* MFC r269183, r269191:mav2014-08-184-17/+97
| | | | Add netmasks support to initiator-portal option.
* MFC 268931:wblock2014-07-312-10/+10
| | | | | Correct spelling errors in ctld.8. While here, correct similar errors in ctl.conf.5 and fix a couple of contractions.
* MFC r268795:mav2014-07-201-2/+5
| | | | Fix ctld crash on startup if target alias is not set.
* MFC r268328:mav2014-07-151-0/+8
| | | | | | | | Close race in r268291 between port destruction, delayed by sessions teardown, and new port creation during `service ctld restart`. Close it by returning iSCSI port internal state, that allows to identify dying ports, which should not be counted as existing, from really alive.
* MFC r268302:mav2014-07-153-0/+6
| | | | | | | Pass through iSCSI session ISID from LOGIN request to the CTL frontend. ISID is an important part of initiator transport ID for iSCSI. It is not used now, but should be to properly implement persistent reservation.
* MFC r268293:mav2014-07-151-15/+13
| | | | | | | | | | | | | Burry devid port method, which was a gross hack. Instead make ports provide wanted port and target IDs, and LUNs provide wanted LUN IDs. After that core Device ID VPD code only had to link all of them together and add relative port and port group numbers. LUN ID for iSCSI LUNs no longer created by CTL, but by ctld, and passed to CTL as "scsiname" LUN option. This makes LUNs to report the same set of IDs, independently from the port through which it is accessed, as required by SCSI specifications.
* MFC r268291:mav2014-07-153-52/+288
| | | | | | | | | | | | | | | | | Create separate CTL port for every iSCSI target (and maybe portal group). 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.
* MFC r267648:mav2014-07-041-2/+2
| | | | | | | serial_num and device_id fields are not necessarily null-terminated. Before this it was impossible to use all 16 bytes of serial number, and client always got serial number NULL-terminated, that is not required.
* MFC r267606:mav2014-07-021-4/+47
| | | | | On discovery stage add set of TargetAddress keys to reply, reporting to the client all the portal groups addresses and ports.
* MFC: 267833jpaetzel2014-06-272-2/+16
| | | | | | | | | | Fix issues in config parser relating to lun serial numbers. Without this fix some serial numbers needed to be quoted to avoid the config parser bailing out. Submitted by: delphij Sponsored by: iXsystems
* MFC r264877:trasz2014-05-071-9/+9
| | | | | | Style fixes. Sponsored by: The FreeBSD Foundation
OpenPOWER on IntegriCloud