Lines Matching refs:cfg
44 #include <sys/nsctl/cfg.h>
314 CFGFILE *cfg;
332 if (!(cfg = cfg_open(""))) {
338 while (!cfg_lock(cfg, CFG_WRLOCK))
342 if (cfg_get_cstring(cfg, key, buf, CFG_MAX_BUF) < 0) {
343 cfg_close(cfg);
360 cfg_close(cfg);
374 if (cfg_vol_disable(cfg, mst, cfg_cluster_tag,
382 if (cfg_put_cstring(cfg, key, NULL, 0) < 0) {
391 if (cfg_vol_disable(cfg, shd, NULL, "ii") < 0)
398 (void) cfg_commit(cfg);
399 cfg_close(cfg);
404 if (!(cfg = cfg_open(""))) {
410 while (!cfg_lock(cfg, CFG_WRLOCK))
414 (void) cfg_vol_enable(cfg, shd, ctag, "ii");
420 (void) cfg_commit(cfg);
421 cfg_close(cfg);
457 CFGFILE *cfg;
466 if ((cfg = cfg_open("")) == NULL) {
472 cfg_resource(cfg, cfg_cluster_tag);
473 if (!cfg_lock(cfg, CFG_RDLOCK)) {
480 if ((n_structs = cfg_get_section(cfg, &entry, "ii")) == 0)
535 cfg_close(cfg);
555 CFGFILE *cfg;
569 if ((cfg = cfg_open("")) == NULL) {
575 cfg_resource(cfg, cfg_cluster_tag);
576 if (!cfg_lock(cfg, CFG_RDLOCK)) {
589 rc = cfg_get_cstring(cfg, key, buf, CFG_MAX_BUF);
607 (void) cfg_get_cstring(cfg, key, p->shadow_vol, DSW_NAMELEN);
611 cfg_close(cfg);