#
303975 |
|
11-Aug-2016 |
gjb |
Copy stable/11@r303970 to releng/11.0 as part of the 11.0-RELEASE cycle.
Prune svn:mergeinfo from the new branch, and rename it to RC1.
Update __FreeBSD_version.
Use the quarterly branch for the default FreeBSD.conf pkg(8) repo and the dvd1.iso packages population.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
302663 |
|
12-Jul-2016 |
trasz |
MFC r302503:
Fix ctld(8) to not exit when reloading configuration with invalid initiator-portal clause.
Approved by: re (gjb)
|
#
302408 |
|
08-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
#
297860 |
|
12-Apr-2016 |
trasz |
Make the usage() mention the -u option added in r295212.
MFC after: 1 month Sponsored by: The FreeBSD Foundation
|
#
295212 |
|
03-Feb-2016 |
jceel |
Add an additional, libucl-based configuration file parser to ctld.
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
|
#
290615 |
|
09-Nov-2015 |
mav |
Introduce portal group options in ctl.conf.
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.
|
#
289677 |
|
21-Oct-2015 |
eadler |
Fix a ton of speelling errors
arc lint is helpful
Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com Differential Revision: https://reviews.freebsd.org/D3337
|
#
288486 |
|
02-Oct-2015 |
mav |
Set default block size for CD to expected 2048 bytes.
|
#
288310 |
|
27-Sep-2015 |
mav |
Add to CTL initial support for CDROMs and removable devices.
Relnotes: yes
|
#
288208 |
|
25-Sep-2015 |
jpaetzel |
Fix typo.
Sponsored by: iXsystems
|
#
287823 |
|
15-Sep-2015 |
mav |
Add ctl-lun config option for consistency in HA setups.
|
#
287757 |
|
13-Sep-2015 |
mav |
When updating port, apply only change of LUN map, not whole.
|
#
287534 |
|
07-Sep-2015 |
mav |
Add two new portal group options "tag" and "foreign".
They are going to be useful in clustered setups.
|
#
287500 |
|
06-Sep-2015 |
mav |
Allow LUN options modification via CTL_LUNREQ_MODIFY.
Not all changes take effect, but that is a different question.
|
#
281163 |
|
06-Apr-2015 |
mav |
Make ctld to not exit on ECONNABORTED on accept().
That is not really an error for the main process.
MFC after: 1 week Sponsored by: iXsystems, Inc.
|
#
281084 |
|
04-Apr-2015 |
jpaetzel |
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.
MFC after: 3 days Sponsored by: iXsystems
|
#
279392 |
|
28-Feb-2015 |
trasz |
Move the "offload" clause from the target section to portal-group section; it makes more sense there.
MFC after: 1 month Sponsored by: The FreeBSD Foundation
|
#
279277 |
|
25-Feb-2015 |
mav |
Fix memory leak on incorrect initiator portal.
Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 3 days
|
#
278594 |
|
11-Feb-2015 |
mav |
Add missing asprintf() status checks.
MFC after: 2 weeks
|
#
278354 |
|
07-Feb-2015 |
mav |
Teach ctld(8) to control non-iSCSI CTL ports.
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.
|
#
278331 |
|
06-Feb-2015 |
trasz |
Make it possible to set (via ctl.conf(5)) and query (via ctladm islist -v) 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
|
#
278322 |
|
06-Feb-2015 |
mav |
Add support for multiple portal groups per target.
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.
|
#
278161 |
|
03-Feb-2015 |
mav |
Bring some more order into iSCSI portal group tags support.
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.
|
#
278037 |
|
01-Feb-2015 |
mav |
CTL LUN mapping rewrite.
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.
|
#
275452 |
|
03-Dec-2014 |
mav |
Do not corrupt the listen string when parsing it.
This fixes problem with ctld reload when it is configured to listen on two portals with same IP, but different ports.
MFC after: 1 week
|
#
275399 |
|
02-Dec-2014 |
trasz |
Fix null pointer dereference.
MFC after: 2 weeks Coverity CID: 1256497 Sponsored by: The FreeBSD Foundation
|
#
274853 |
|
22-Nov-2014 |
mav |
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 after: 1 week
|
#
274804 |
|
21-Nov-2014 |
mav |
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 after: 1 month
|
#
274791 |
|
21-Nov-2014 |
trasz |
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 after: 1 month Sponsored by: The FreeBSD Foundation
|
#
274308 |
|
09-Nov-2014 |
trasz |
Add support for sending redirections to iSCSI target.
MFC after: 1 month Sponsored by: The FreeBSD Foundation
|
#
274248 |
|
07-Nov-2014 |
mav |
Remove unused assignments, noticed by Clang analyzer.
MFC after: 1 week
|
#
273816 |
|
29-Oct-2014 |
trasz |
Simplify code; no functional changes.
MFC after: 1 month Sponsored by: The FreeBSD Foundation
|
#
273813 |
|
29-Oct-2014 |
trasz |
Add discovery-filter. This makes it possible to restrict which targets are returned during discovery based on initiator portal, name, and CHAP credentials.
Reviewed by: mav@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
|
#
273635 |
|
25-Oct-2014 |
mav |
Add basic iSNS client to the iSCSI target.
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.
|
#
273584 |
|
24-Oct-2014 |
trasz |
Make the initiator-name and initiator-portal checks a little nicer.
MFC after: 1 month Sponsored by: The FreeBSD Foundation
|
#
273465 |
|
22-Oct-2014 |
trasz |
Fix ctld(8) to not show the "auth-group <name> not assigned to any target" warning for auth-groups assigned to a portal-group.
MFC after: 1 month Sponsored by: The FreeBSD Foundation
|
#
273464 |
|
22-Oct-2014 |
trasz |
Whitespace fixes.
MFC after: 1 month Sponsored by: The FreeBSD Foundation
|
#
271797 |
|
18-Sep-2014 |
mav |
Make kernel to update LUN size from the backing storage 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.
MFC after: 3 days
|
#
271187 |
|
06-Sep-2014 |
trasz |
Avoid ctld(8) crash on getaddrinfo(3) failure.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
|
#
271169 |
|
05-Sep-2014 |
trasz |
Turn two errors, which are possible to trigger only by bugs, into assertions.
Discussed with: mav@ MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
|
#
270279 |
|
21-Aug-2014 |
trasz |
Make the iSCSI stack use __FBSDID() properly.
MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
|
#
269191 |
|
28-Jul-2014 |
mav |
Fix r269183 build woth GCC.
MFC after: 2 weeks
|
#
269183 |
|
28-Jul-2014 |
mav |
Add netmasks support to initiator-portal option.
MFC after: 2 weeks
|
#
268291 |
|
05-Jul-2014 |
mav |
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.
|
#
264535 |
|
16-Apr-2014 |
trasz |
English.
Sponsored by: The FreeBSD Foundation
|
#
264534 |
|
16-Apr-2014 |
trasz |
If we fail to create LUN, try again on next configuration reload.
Sponsored by: The FreeBSD Foundation
|
#
264533 |
|
16-Apr-2014 |
trasz |
Use consistent punctuation.
Sponsored by: The FreeBSD Foundation
|
#
264531 |
|
16-Apr-2014 |
trasz |
Constify.
Sponsored by: The FreeBSD Foundation
|
#
264530 |
|
16-Apr-2014 |
trasz |
Properly pass the initiator address when running in proxy mode.
Sponsored by: The FreeBSD Foundation
|
#
264529 |
|
16-Apr-2014 |
trasz |
Use socket address from accept(2) instead of retrieving it via getpeername(2).
Sponsored by: The FreeBSD Foundation
|
#
264528 |
|
16-Apr-2014 |
trasz |
Rework the way we enable CTL iSCSI port. Previously conf_apply() 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
|
#
264526 |
|
16-Apr-2014 |
trasz |
Properly identify target portal when running in proxy mode. While here, remove CTL_ISCSI_CLOSE, it wasn't used or implemented anyway.
Sponsored by: The FreeBSD Foundation
|
#
264524 |
|
16-Apr-2014 |
trasz |
Make it possible for the iSCSI target side to operate in both normal and ICL_KERNEL_PROXY mode, and fix some bit rot so the latter actually works again.
Sponsored by: The FreeBSD Foundation
|
#
264500 |
|
15-Apr-2014 |
trasz |
Stop treating LUN 0 as mandatory. There is no reason to do that.
Suggested by: mav@ MFC after: 1 month Sponsored by: The FreeBSD Foundation
|
#
261768 |
|
11-Feb-2014 |
trasz |
Make the debug messages during ctld(8) shutdown less confusing.
Sponsored by: The FreeBSD Foundation
|
#
261764 |
|
11-Feb-2014 |
trasz |
So, it turns out SIGCHLD is discarded by default, so we have to set up a dummy handler to make it interrupt an ioctl(2) or select(2).
This makes those short-lived ctld(8) zombies disappear.
Sponsored by: The FreeBSD Foundation
|
#
261763 |
|
11-Feb-2014 |
trasz |
Use new auth-type "deny" instead of using "chap" with no chap entries; it's cleaner this way, and gives better feedback to the user.
Sponsored by: The FreeBSD Foundation
|
#
261762 |
|
11-Feb-2014 |
trasz |
Use "default" as default discovery-auth-group, instead of "no-access". It doesn't change visible behaviour, as previously auth-group "default" wasn't redefinable, so by default access was always denied.
Sponsored by: The FreeBSD Foundation
|
#
261760 |
|
11-Feb-2014 |
trasz |
Add a new auth-group "default", defaulting to deny, and make it possible to redefine it. From now on, assigning auth-group to a target is no longer mandatory.
Sponsored by: The FreeBSD Foundation
|
#
261758 |
|
11-Feb-2014 |
trasz |
Add auth-type.
Sponsored by: The FreeBSD Foundation
|
#
261757 |
|
11-Feb-2014 |
trasz |
Rename a variable, no functional changes.
Sponsored by: The FreeBSD Foundation
|
#
261755 |
|
11-Feb-2014 |
trasz |
Make function ordering slightly more logical; no functional changes.
Sponsored by: The FreeBSD Foundation
|
#
261754 |
|
11-Feb-2014 |
trasz |
Implement initiator-name and initiator-portal restrictions.
Sponsored by: The FreeBSD Foundation
|
#
261753 |
|
11-Feb-2014 |
trasz |
Daemonize after applying configuration, not before, so that any problems - including "daemon already running" - are visible on the terminal and not just in logs.
Sponsored by: The FreeBSD Foundation
|
#
261750 |
|
11-Feb-2014 |
trasz |
Improve check for duplicated paths. It shows the warning twice for every path (once for each duplicate found), but it should do for now.
Sponsored by: The FreeBSD Foundation
|
#
261749 |
|
11-Feb-2014 |
trasz |
Refactor.
Sponsored by: The FreeBSD Foundation
|
#
255678 |
|
18-Sep-2013 |
trasz |
Fix several problems in the new iSCSI stack; this includes interoperability fix for LIO (Linux target), removing possibility for the target to avoid mutual CHAP by choosing to skip authentication altogether, and fixing truncated error messages in iscsictl(8) output. This also fixes several of the problems found with Coverity.
Note that this change requires world rebuild.
Coverity CID: 1088038, 1087998, 1087990, 1088004, 1088044, 1088041, 1088040 Approved by: re (blanket) Sponsored by: FreeBSD Foundation
|
#
255570 |
|
14-Sep-2013 |
trasz |
Bring in the new iSCSI target and initiator.
Reviewed by: ken (parts) Approved by: re (delphij) Sponsored by: FreeBSD Foundation
|