Lines Matching refs:newconf

1803 conf_apply(struct conf *oldconf, struct conf *newconf)
1814 if (oldconf->conf_debug != newconf->conf_debug) {
1815 log_debugx("changing debug level to %d", newconf->conf_debug);
1816 log_init(newconf->conf_debug);
1821 if (newconf->conf_pidfile_path != NULL &&
1823 newconf->conf_pidfile_path) == 0) {
1824 newconf->conf_pidfh = oldconf->conf_pidfh;
1834 if (newconf->conf_pidfh == NULL && newconf->conf_pidfile_path != NULL) {
1835 log_debugx("opening pidfile %s", newconf->conf_pidfile_path);
1836 newconf->conf_pidfh =
1837 pidfile_open(newconf->conf_pidfile_path, 0600, &otherpid);
1838 if (newconf->conf_pidfh == NULL) {
1843 newconf->conf_pidfile_path);
1850 TAILQ_FOREACH(newpg, &newconf->conf_portal_groups, pg_next) {
1862 TAILQ_FOREACH(newns, &newconf->conf_isns, i_next) {
1872 * the old lun or target into newconf, so that subsequent
1884 newport = port_find(newconf, oldport->p_name);
1905 newlun = lun_find(newconf, oldlun->l_name);
1978 TAILQ_FOREACH_SAFE(newlun, &newconf->conf_luns, l_next, tmplun) {
2004 TAILQ_FOREACH(newport, &newconf->conf_ports, p_next) {
2032 TAILQ_FOREACH(newpg, &newconf->conf_portal_groups, pg_next) {
2152 TAILQ_FOREACH(newns, &newconf->conf_isns, i_next) {
2161 if (!TAILQ_EMPTY(&newconf->conf_isns))
2162 set_timeout((newconf->conf_isns_period + 2) / 3, false);
2495 struct conf *oldconf, *newconf, *tmpconf;
2530 newconf = conf_new_from_file(config_path, oldconf);
2531 if (newconf == NULL)
2535 newconf->conf_debug = debug;
2538 error = conf_apply(oldconf, newconf);
2551 pidfile_remove(newconf->conf_pidfh);
2557 if (!TAILQ_EMPTY(&newconf->conf_isns))
2558 set_timeout((newconf->conf_isns_period + 2) / 3, false);
2561 main_loop(newconf, dont_daemonize);
2565 tmpconf = conf_new_from_file(config_path, newconf);
2572 oldconf = newconf;
2573 newconf = tmpconf;
2574 error = conf_apply(oldconf, newconf);
2588 oldconf = newconf;
2589 newconf = conf_new();
2591 newconf->conf_debug = debug;
2592 error = conf_apply(oldconf, newconf);
2605 TAILQ_FOREACH(newns, &newconf->conf_isns, i_next)
2608 if (!TAILQ_EMPTY(&newconf->conf_isns)) {
2609 set_timeout((newconf->conf_isns_period