freebsd-dev/usr.sbin/ctld
Alan Somers 15b3e3bb7e ctld: if adding a target fails, retry it on the next reload
If the admin creates more CTL ports than kern.cam.ctl.max_ports, then
adding some will fail.  If he then removes some ports and does
"service ctld reload", he would expect that the new ports would get
added in the newly-freed port space. But they don't, because ctld
assigned them port numbers during their first creation attempts.

Fix this bug by removing newly created ports from ctld's internal list
if the kernel rejects them for any reason.  That way, a subsequent
config reload will attempt to add them again, possibly with new port
numbers.

MFC after:	2 weeks
Sponsored by:	Axcient
Reviewed by:	jhb, mav
Differential Revision: https://reviews.freebsd.org/D36974
2022-10-21 18:28:45 -06:00
..
ctl.conf.5 Add network QoS support for PCP to iscsi target. 2020-10-24 21:10:53 +00:00
ctld.8 Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
ctld.c ctld: if adding a target fails, retry it on the next reload 2022-10-21 18:28:45 -06:00
ctld.h iscsi: Fetch limits based on a socket rather than assuming global limits. 2022-04-18 12:53:28 -07:00
discovery.c iscsi: Handle large Text responses. 2021-12-29 14:36:04 -08:00
isns.c
isns.h
kernel.c iscsi: Fetch limits based on a socket rather than assuming global limits. 2022-04-18 12:53:28 -07:00
login.c iscsi: Fetch limits based on a socket rather than assuming global limits. 2022-04-18 12:53:28 -07:00
Makefile ctld: Disable -Wcast-align warnings. 2021-12-22 15:23:45 -08:00
Makefile.depend
parse.y [ctld] Fix compilation under gcc-6.4 2020-11-01 21:18:21 +00:00
token.l Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
uclparse.c Fix an early return in ctld UCL parser 2021-08-30 22:59:33 -04:00