CFISCSI(4)
π CFISCSI(4) β Kernel Interfaces Manual π
okay bestie, buckle up, because this one is cfiscsi β the CAM Target Layer iSCSI target frontend. yes that's a lot of words. no i will not be normal about it. π¦
β¨ NAME β¨
cfiscsi β CAM Target Layer iSCSI target frontend
πΈ SYNOPSIS πΈ
so you want this driver in your kernel, right? then you gotta put these lines in your kernel configuration file, exactly like this, no notes:
device cfiscsi
device ctl
device iscsi
or β hear me out β you can load it as a module at boot time instead, in which case you drop this one single line into loader.conf(5):
cfiscsi_load="YES"
that's it. that's the whole vibe check. π«Ά
π DESCRIPTION π
the cfiscsi subsystem is the kernel component of an iSCSI target. and yes, the target is the iSCSI server β it's the one handing out LUNs backed by local files and volumes to remote initiators. main character energy, honestly.
the userspace half of this whole situation is provided by ctld(8). and cfiscsi? it's implemented as a ctl(4) frontend, and it uses the infrastructure that iscsi(4) brings to the table. teamwork makes the dream work. π
β SYSCTL VARIABLES β
these bad boys are available both as sysctl(8) variables and as loader(8) tunables. double duty, we love to see it:
kern.cam.ctl.iscsi.debugβ the verbosity level for log messages coming out of the kernel part of the iSCSI target. set it to0to turn logging off completely, or to1if you want warnings about potential problems. bigger values = more debugging output, obviously. defaults to1.kern.cam.ctl.iscsi.maxtagsβ how many outstanding commands you advertise to each iSCSI initiator. heads up though: the current implementation is not very accurate, so do not set this below2. defaults to256.kern.cam.ctl.iscsi.ping_timeoutβ the number of seconds to wait for the iSCSI initiator to respond to a NOP-In PDU. and if there's no response within that time? the session gets forcibly terminated. set it to0to disable sending NOP-In PDUs entirely. defaults to5.
no cap, that timeout one is serious β silence is not golden here, silence gets your session yeeted. π
π SEE ALSO π
π§ HISTORY π§
the cfiscsi subsystem first appeared in FreeBSD 10.0 as part of the ctl(4) driver. then it got split off of ctl(4) in FreeBSD 12.0. glow-up era. β¨
π AUTHORS π
the cfiscsi subsystem was developed by Edward Tomasz Napierala <trasz@FreeBSD.org> under sponsorship from the FreeBSD Foundation.
this manual page was written by Enji Cooper <ngie@FreeBSD.org>.
and that's the whole page bestie, you ate it, periodt π
Debian β May 28, 2017 β CFISCSI(4) π¦π
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 2013 Edward Tomasz Napierala
- Copyright (c) 2015-2017 Alexander Motin <mav@FreeBSD.org>
- Copyright (c) 2017 Enji Cooper <ngie@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms