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)
Wed, Oct 7, 11:41 PM
Unknown Object (File)
Sat, Oct 3, 12:23 AM
Unknown Object (File)
Fri, Oct 2, 4:00 PM
Unknown Object (File)
Fri, Oct 2, 10:46 AM
Unknown Object (File)
Fri, Oct 2, 7:31 AM
Unknown Object (File)
Wed, Sep 30, 5:02 PM
Unknown Object (File)
Wed, Sep 30, 8:44 AM
Unknown Object (File)
Sun, Sep 27, 10:32 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 73510
Build 70393: arc lint + arc unit

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

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.