Page MenuHomeFreeBSD

ctld: More consistent error messages
ClosedPublic

Authored by des on May 27 2026, 11:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Aug 2, 6:34 AM
Unknown Object (File)
Sun, Aug 2, 3:29 AM
Unknown Object (File)
Sun, Aug 2, 2:50 AM
Unknown Object (File)
Sat, Aug 1, 7:18 PM
Unknown Object (File)
Sat, Aug 1, 8:10 AM
Unknown Object (File)
Mon, Jul 27, 4:27 PM
Unknown Object (File)
Sat, Jul 25, 9:14 AM
Unknown Object (File)
Fri, Jul 24, 9:18 PM
Subscribers

Details

Summary

The error messages ctld emits when it finds a port or LUN it did not
create were inconsistent with each other as well as with ctld's other
error messages.

MFC after: 1 week
Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.May 27 2026, 11:25 AM

differentiate iscsi / nvmeof

usr.sbin/ctld/kernel.cc
449–450

Hmm, I change this a bit in D57283. One key thing is that we actually _don't_ ignore "iscsi" ports without a valid target string since we add them to kports (though possibly we should?), but we do currently ignore "nvmf" ports without a valid target.

jhb added inline comments.
usr.sbin/ctld/kernel.cc
449–450

s/should/shouldn't/. But that is probably a better topic for my other change anyway.

501–502

Typical spelling in the tree today is no hyphen.

This revision is now accepted and ready to land.May 28 2026, 4:45 PM
This revision was automatically updated to reflect the committed changes.