]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r268291:
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 15 Jul 2014 17:05:11 +0000 (17:05 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 15 Jul 2014 17:05:11 +0000 (17:05 +0000)
commit9e69f4b0f4590a7552656b88209c382cbdec9674
tree3d9ca3626166615c016ecdeda80ab70d51e47c14
parent79077b623880961a5266dd74af86c61a4de5053e
MFC r268291:
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.

git-svn-id: svn://svn.freebsd.org/base/stable/10@268682 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/cam/ctl/ctl.c
sys/cam/ctl/ctl.h
sys/cam/ctl/ctl_frontend.c
sys/cam/ctl/ctl_frontend.h
sys/cam/ctl/ctl_frontend_iscsi.c
sys/cam/ctl/ctl_frontend_iscsi.h
sys/cam/ctl/ctl_ioctl.h
usr.sbin/ctld/ctld.c
usr.sbin/ctld/ctld.h
usr.sbin/ctld/kernel.c