1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/usr.sbin/ctld
Alexander Motin 920c6cbadc 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.
2015-02-01 21:50:28 +00:00
..
chap.c Make both iSCSI initiator and target support base64 encoded CHAP data. 2014-11-09 20:39:08 +00:00
ctl.conf.5 CTL LUN mapping rewrite. 2015-02-01 21:50:28 +00:00
ctld.8 Add HISTORY section to ctld(8). 2014-11-09 13:45:35 +00:00
ctld.c CTL LUN mapping rewrite. 2015-02-01 21:50:28 +00:00
ctld.h CTL LUN mapping rewrite. 2015-02-01 21:50:28 +00:00
discovery.c Make sequence numbers checks more strict. 2014-12-17 15:13:21 +00:00
isns.c Fix error handling. 2014-11-21 16:14:32 +00:00
isns.h Add basic iSNS client to the iSCSI target. 2014-10-25 12:50:26 +00:00
kernel.c CTL LUN mapping rewrite. 2015-02-01 21:50:28 +00:00
keys.c Whitespace fixes. 2014-10-22 09:17:17 +00:00
log.c Make the iSCSI stack use __FBSDID() properly. 2014-08-21 15:32:38 +00:00
login.c Slightly polish iSCSI parameters negotiation. 2014-12-19 01:12:22 +00:00
Makefile Convert usr.sbin to LIBADD 2014-11-25 16:57:27 +00:00
parse.y CTL LUN mapping rewrite. 2015-02-01 21:50:28 +00:00
pdu.c Make the iSCSI stack use __FBSDID() properly. 2014-08-21 15:32:38 +00:00
token.l Add support for sending redirections to iSCSI target. 2014-11-09 13:01:09 +00:00