Page MenuHomeFreeBSD

ctld: Add a dedicated conf method for shutting down
Needs ReviewPublic

Authored by jhb on Mon, Apr 20, 4:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 25, 5:34 AM
Unknown Object (File)
Fri, Apr 24, 12:11 PM
Unknown Object (File)
Fri, Apr 24, 6:48 AM
Unknown Object (File)
Wed, Apr 22, 3:40 AM
Subscribers

Details

Reviewers
asomers
kevans
Summary

Currently the main loop creates an empty config and applies it to
force a shutdown of all of the existing configuration. While this is
functional and does avoid duplicating some code, it is also a bit
clunky and requires a special hack in the pidfile path handling
in the conf::apply method.

Instead, use a dedicated conf::shutdown method which tears down the
CTL ports and LUNs and closes the sockets.

Sponsored by: Chelsio Communications

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 72376
Build 69259: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Mon, Apr 20, 4:57 PM
usr.sbin/ctld/ctld.cc
2810

Even non-iSCSI "physical" ports are taken off line, so this log message could maybe just say "CTL ports"?

jhb added inline comments.
usr.sbin/ctld/ctld.cc
2207

Given that these are the second and third actions, maybe I should just remove the 'First' and 'Second' bits in these comments (which were copied from conf::apply above where they are also somewhat misnumbered)