summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctld/ctld.c
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2015-09-15 13:37:48 +0000
committermav <mav@FreeBSD.org>2015-09-15 13:37:48 +0000
commit6e36742bfeb77cdd423bfda6e4071b689671b143 (patch)
tree231ec53043bbb52cd8b583704a929edffc602c24 /usr.sbin/ctld/ctld.c
parent50caf2bee2ab22bc86bc813c719d6041a327c8b0 (diff)
downloadFreeBSD-src-6e36742bfeb77cdd423bfda6e4071b689671b143.zip
FreeBSD-src-6e36742bfeb77cdd423bfda6e4071b689671b143.tar.gz
Add ctl-lun config option for consistency in HA setups.
Diffstat (limited to 'usr.sbin/ctld/ctld.c')
-rw-r--r--usr.sbin/ctld/ctld.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/ctld/ctld.c b/usr.sbin/ctld/ctld.c
index 06c8e14..143f2e3 100644
--- a/usr.sbin/ctld/ctld.c
+++ b/usr.sbin/ctld/ctld.c
@@ -1397,6 +1397,7 @@ lun_new(struct conf *conf, const char *name)
lun->l_name = checked_strdup(name);
TAILQ_INIT(&lun->l_options);
TAILQ_INSERT_TAIL(&conf->conf_luns, lun, l_next);
+ lun->l_ctl_lun = -1;
return (lun);
}
OpenPOWER on IntegriCloud