CFISCSI(4)
π CFISCSI(4) β bestie, let me introduce you
okay so this is the manpage for cfiscsi, and it lives in the Kernel Interfaces Manual section (section 4, for those of you keeping score π). It's a FreeBSD thing. Grab a snack, we're doing this. β¨
πΈ NAME πΈ
cfiscsi β the CAM Target Layer iSCSI target frontend. That's a lot of words, but likeβ¦ it's the kernel-side brain that makes your box pretend to be an iSCSI disk server. Slay. π¦
β¨ SYNOPSIS β¨
Want it baked into the kernel? Add these lines to your kernel configuration file, exactly like this, no changes:
device cfiscsi
device ctl
device iscsi
Or, if you'd rather load it as a module at boot time (very valid, very main character π«Ά), drop this line into loader.conf(5):
cfiscsi_load="YES"
π DESCRIPTION π
So here's the vibe: the cfiscsi subsystem gives you the kernel component of an iSCSI target. And what's a target? It's the iSCSI server β the one handing out LUNs (backed by local files and volumes) to remote initiators. You're the server. You're hosting. You're the moment. π
The userspace half of this whole operation is provided by ctld(8), which is where you actually configure stuff.
Under the hood, cfiscsi is implemented as a ctl(4) frontend, and it leans on infrastructure provided by iscsi(4). Everything's connected, it's giving ecosystem. π
β SYSCTL VARIABLES β
These bad boys are available both as sysctl(8) variables and as loader(8) tunables. Double duty, dual threat, iconic.
kern.cam.ctl.iscsi.debugβ the verbosity level for log messages coming out of the kernel part of the iSCSI target. Set it to0to disable logging entirely, or1to warn you about potential problems. Bigger values unlock the debugging output β turn it up if you're investigating something. Defaults to1. πkern.cam.ctl.iscsi.maxtagsβ the number of outstanding commands to advertise to each iSCSI initiator. Fr fr, 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. If there's no response within that window, the session gets forcibly terminated. π Set it to0to disable sending NOP-In PDUs altogether. Defaults to5.
π¦ SEE ALSO π¦
Go read them, I promise it's worth it. β¨
π HISTORY π
The cfiscsi subsystem first appeared in FreeBSD 10.0, back when it was part of the ctl(4) driver. Then in FreeBSD 12.0 it got split off from ctl(4) and became its own whole thing. Growth. Evolution. Glow-up. π±β‘οΈπΈ
π§ AUTHORS π§
The cfiscsi subsystem was developed by Edward Tomasz Napierala <trasz@FreeBSD.org>, under sponsorship from the FreeBSD Foundation. And this very manual page was written by Enji Cooper <ngie@FreeBSD.org>. Legends, both of them. π
and that's the whole page, bestie β no notes, no cap π
Debian Β· May 28, 2017 Β· CFISCSI(4) β mwah, catch you in the next manpage πβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: source
- 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-1017 on : a language model's rewrite of the original, under its terms