summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctld/ctld.h
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2014-04-16 10:43:12 +0000
committertrasz <trasz@FreeBSD.org>2014-04-16 10:43:12 +0000
commitb9b743fae950204f8e63d670f833e31869896a47 (patch)
treeb1b3af280e4e5fe3d3f156e0d1f726f14e58d9b8 /usr.sbin/ctld/ctld.h
parentafd4f7f84bf6eeb25f1918628fada6f2e97f4f6e (diff)
downloadFreeBSD-src-b9b743fae950204f8e63d670f833e31869896a47.zip
FreeBSD-src-b9b743fae950204f8e63d670f833e31869896a47.tar.gz
Rework the way we enable CTL iSCSI port. Previously conf_apply()
needed it to be already enabled, because listening in proxy mode requires it; however, it's conf_apply() that opens pidfiles, so it resulted in port being enabled before pidfile was opened. This was not so bad, but it was also disabled when pidfile couldn't be opened due to ctld already running; this means that starting second ctld instance screwed up the first. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin/ctld/ctld.h')
-rw-r--r--usr.sbin/ctld/ctld.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/ctld/ctld.h b/usr.sbin/ctld/ctld.h
index be7be13..fe5abfe 100644
--- a/usr.sbin/ctld/ctld.h
+++ b/usr.sbin/ctld/ctld.h
@@ -156,6 +156,7 @@ struct conf {
bool conf_default_pg_defined;
bool conf_default_ag_defined;
+ bool conf_kernel_port_on;
};
#define CONN_SESSION_TYPE_NONE 0
OpenPOWER on IntegriCloud