Lines Matching refs:newconf

1823 conf_apply(struct conf *oldconf, struct conf *newconf)
1834 if (oldconf->conf_debug != newconf->conf_debug) {
1835 log_debugx("changing debug level to %d", newconf->conf_debug);
1836 log_init(newconf->conf_debug);
1841 if (newconf->conf_pidfile_path != NULL &&
1843 newconf->conf_pidfile_path) == 0) {
1844 newconf->conf_pidfh = oldconf->conf_pidfh;
1854 if (newconf->conf_pidfh == NULL && newconf->conf_pidfile_path != NULL) {
1855 log_debugx("opening pidfile %s", newconf->conf_pidfile_path);
1856 newconf->conf_pidfh =
1857 pidfile_open(newconf->conf_pidfile_path, 0600, &otherpid);
1858 if (newconf->conf_pidfh == NULL) {
1863 newconf->conf_pidfile_path);
1870 TAILQ_FOREACH(newpg, &newconf->conf_portal_groups, pg_next) {
1882 TAILQ_FOREACH(newns, &newconf->conf_isns, i_next) {
1892 * the old lun or target into newconf, so that subsequent
1904 newport = port_find(newconf, oldport->p_name);
1925 newlun = lun_find(newconf, oldlun->l_name);
1998 TAILQ_FOREACH_SAFE(newlun, &newconf->conf_luns, l_next, tmplun) {
2024 TAILQ_FOREACH(newport, &newconf->conf_ports, p_next) {
2052 TAILQ_FOREACH(newpg, &newconf->conf_portal_groups, pg_next) {
2172 TAILQ_FOREACH(newns, &newconf->conf_isns, i_next) {
2181 if (!TAILQ_EMPTY(&newconf->conf_isns))
2182 set_timeout((newconf->conf_isns_period + 2) / 3, false);
2613 struct conf *oldconf, *newconf, *tmpconf;
2652 newconf = conf_new_from_file(config_path, oldconf, use_ucl);
2654 if (newconf == NULL)
2658 newconf->conf_debug = debug;
2661 error = conf_apply(oldconf, newconf);
2674 pidfile_remove(newconf->conf_pidfh);
2680 if (!TAILQ_EMPTY(&newconf->conf_isns))
2681 set_timeout((newconf->conf_isns_period + 2) / 3, false);
2684 main_loop(newconf, dont_daemonize);
2688 tmpconf = conf_new_from_file(config_path, newconf,
2697 oldconf = newconf;
2698 newconf = tmpconf;
2699 error = conf_apply(oldconf, newconf);
2713 oldconf = newconf;
2714 newconf = conf_new();
2716 newconf->conf_debug = debug;
2717 error = conf_apply(oldconf, newconf);
2730 TAILQ_FOREACH(newns, &newconf->conf_isns, i_next)
2733 if (!TAILQ_EMPTY(&newconf->conf_isns)) {
2734 set_timeout((newconf->conf_isns_period