MFC r352119-r352124, r352130Stop linking to libl by specifying we do not need yywrap
Rework CTL frontend & backend options to use nv(3), allow creating multipleioctl frontend ports.This revision introduces two changes to CTL:- Changes the way options are passed to CTL_LUN_REQ and
Rework CTL frontend & backend options to use nv(3), allow creating multipleioctl frontend ports.This revision introduces two changes to CTL:- Changes the way options are passed to CTL_LUN_REQ and CTL_PORT_REQ ioctls. Removes ctl_be_arg structure and associated logic and replaces it with nv(3)-based logic for passing in and out arguments.- Allows creating multiple ioctl frontend ports using either ctladm(8) or ctld(8). New frontend ports are represented by /dev/cam/ctl<pp>.<vp> nodes, eg /dev/cam/ctl5.3. Those device nodes respond only to CTL_IO ioctl.New command-line options for ctladm:# creates new ioctl frontend port with using free pp and vp=0ctladm port -c# creates new ioctl frontend port with pp=10 and vp=0ctladm port -c -O pp=10# creates new ioctl frontend port with pp=11 and vp=12ctladm port -c -O pp=11 -O vp=12# removes port with number 4 (it's a "targ_port" number, not pp number)ctladm port -r -p 4New syntax for ctl.conf:target ... { port ioctl/<pp> ...}target ... { port ioctl/<pp>/<vp> ...Note: Most of this work was made by jceel@, thank you.Submitted by: jceelReworked by: myselfReviewed by: mav (earlier versions and recently during the rework)Obtained from: FreeNAS and TrueOSRelnotes: YesSponsored by: iXsystems Inc.Differential Revision: https://reviews.freebsd.org/D9299
show more ...
Strip trailing whitespace.MFC after: 2 weeks
minor work smithing...
Add missing SPDX tags for ctld(8).MFC after: 2 weeks
userland: Fix several typos and minor errors- duplicate words- typos- references to old versions of FreeBSDReviewed by: imp, benno
various: general adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - error
various: general adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.No functional change intended.
Use proper naming in a debug message.MFC after: 2 weeks
DIRDEPS_BUILD: Update dependencies.Sponsored by: Dell EMC Isilon
Fix ctld segfaulting when using ucl conf file format and having duplicatedlun or targetSubmitted by: Nikita Kozlov <nikita.kozlov at blade-group.com>MFC after: 3 daysSponsored by: bladeDifferen
Fix ctld segfaulting when using ucl conf file format and having duplicatedlun or targetSubmitted by: Nikita Kozlov <nikita.kozlov at blade-group.com>MFC after: 3 daysSponsored by: bladeDifferential Revision: https://reviews.freebsd.org/D12646
Make ctld(8) mention cfiscsi(4).MFC after: 2 weeks
Do not register in CTL portal groups without portals.From config synthax point of view such portal groups are not incorrect,but they are useless since can not receive any connection. And sinceCT
Do not register in CTL portal groups without portals.From config synthax point of view such portal groups are not incorrect,but they are useless since can not receive any connection. And sinceCTL port resource is very limited, it is good to save it.MFC after: 2 weeks
Split iscsi(4) ctl frontend off of ctl(4) as cfiscsi(4)The goal of this work is to remove the explicit dependency for ctl(4)on iscsi(4), so end-users without iscsi(4) support in the kernel canuse
Split iscsi(4) ctl frontend off of ctl(4) as cfiscsi(4)The goal of this work is to remove the explicit dependency for ctl(4)on iscsi(4), so end-users without iscsi(4) support in the kernel canuse ctl(4) for its other functions.This allows those without iscsi(4) support built into the kernel to usectl(4) as a test mechanism. As a sidenote, this was possible around the10.0-RELEASE period, but made impossible for end-users without iscsi(4)between 10.0-RELEASE and 11.0-RELEASE.Automatically load cfiscsi(4) from ctladm(8) and ctld(8) for backwardscompatibility with previously releases. The automatic loading feature iscompiled into the beforementioned tools if MK_ISCSI == yes when buildingworld.Add a manpage for cfiscsi(4) and refer to it in ctl(4).Differential Revision: D10099MFC after: 2 monthsRelnotes: yesReviewed by: mav, traszSponsored by: Dell EMC Isilon
ctld: sort #includes per style(9)- Only include sys/types.h or sys/param.h, not both.- Sort alphabetically.MFC after: 3 daysSponsored by: Dell EMC Isilon
Allow WARNS to be overridden by the end-userMFC after: 3 daysSponsored by: Dell EMC Isilon
Use nitems() from sys/param.h.Reviewed by: npMFC after: 3 weeks.Differential Revision: https://reviews.freebsd.org/D9945
usr.sbin: normalize paths using SRCTOP-relative paths or :H when possibleThis simplifies make logic/outputMFC after: 1 monthSponsored by: Dell EMC Isilon
Fix build with ICL_KERNEL_PROXY.MFC after: 2 weeks
Fix wrong way assignment in r312190.
Decouple iSCSI connection limits from defaults.If initiator does not negotiate some parameter, it expects one to getdefault value, not some unknown remote hardware limit. On the side side,if som
Decouple iSCSI connection limits from defaults.If initiator does not negotiate some parameter, it expects one to getdefault value, not some unknown remote hardware limit. On the side side,if some parameter is negotiated, its default value from RFC should notbe used for anything.
Add MAX_LUNS overflow safety checks.While this MAX_LUNS limitation is too synthetic and should be removed,it is better to enforce it while it is here.MFC after: 2 weeks
Plug another leak with malformed IPv6 address.MFC after: 2 weeks
Don't leak 'str' when we see a malformed IPv6 address.MFC after: 2 weeks
There appeared to be even more copy/pastes. :)Submitted by: Dmitry Luhtionov <[email protected]>MFC after: 2 weeks
Fix wrong copy/paste in error message.Submitted by: Dmitry Luhtionov <[email protected]>MFC after: 2 weeks
12345678