Lines Matching defs:rdc

72 extern int sv_enable(CFGFILE *cfg, rdcconfig_t *rdc);
129 config2set(rdcconfig_t *rdc)
134 strncpy(urdc.primary.intf, rdc->phost, MAX_RDC_HOST_SIZE);
135 strncpy(urdc.primary.file, rdc->pfile, NSC_MAXPATH);
136 strncpy(urdc.primary.bitmap, rdc->pbmp, NSC_MAXPATH);
137 strncpy(urdc.secondary.intf, rdc->shost, MAX_RDC_HOST_SIZE);
138 strncpy(urdc.secondary.file, rdc->sfile, NSC_MAXPATH);
139 strncpy(urdc.secondary.bitmap, rdc->sbmp, NSC_MAXPATH);
140 strncpy(urdc.group_name, rdc->group, NSC_MAXPATH);
194 rdc_mtconfig(void *rdc)
199 rdc_config_t *rdccfg = (rdc_config_t *)rdc;
261 &conf, NULL, "rdc", &tinfo, 0);
275 &conf, NULL, "rdc", &tinfo, 0);
299 rdc_free_config(rdcconfig_t *rdc, int all)
304 rdcp = rdc;
312 rdc = NULL;
388 rdc_enable(rdcconfig_t *rdc)
396 rdcp = rdc;
414 } else if (strncmp(rdc->mode, "async", NSC_MAXPATH) == 0) {
455 * travel the rc chain and rdc chain checking results,
459 rdcp = rdc;
473 rdc_enable_clrbmp(rdcconfig_t *rdc)
481 rdcp = rdc;
500 } else if (strncmp(rdc->mode, "async", NSC_MAXPATH) == 0) {
530 * travel the rc chain and rdc chain checking results,
534 rdcp = rdc;
549 rdc_disable(rdcconfig_t *rdc)
557 rdcp = rdc;
584 rdcp = rdc;
596 rdc_log(rdcconfig_t *rdc)
603 rdcp = rdc;
631 rdc_usync(rdcconfig_t *rdc)
640 rdcp = rdc;
675 rdc_fsync(rdcconfig_t *rdc)
684 rdcp = rdc;
724 rdc_rsync(rdcconfig_t *rdc)
733 rdcp = rdc;
784 rdc_ursync(rdcconfig_t *rdc)
793 rdcp = rdc;
840 rdc_wait(rdcconfig_t *rdc)
847 rdcp = rdc;
875 rdc_set_autosync(rdcconfig_t *rdc, int autosync)
882 rdcp = rdc;
913 rdc_set_maxqfbas(rdcconfig_t *rdc, int maxqfbas)
920 rdcp = rdc;
951 rdc_set_maxqitems(rdcconfig_t *rdc, int maxqitems)
958 rdcp = rdc;
968 rdccfg.rdc_set[0] = config2set(rdc);
990 rdc_status(rdcconfig_t *rdc)
995 rdccfg.rdc_set[0] = config2set(rdc);
1004 rdc_get_autosync(rdcconfig_t *rdc)
1008 rdcset = rdc_status(rdc);
1013 rdc_get_maxqfbas(rdcconfig_t *rdc)
1017 rdcset = rdc_status(rdc);
1023 rdc_get_maxqitems(rdcconfig_t *rdc)
1027 rdcset = rdc_status(rdc);
1033 set_mode(rdcconfig_t *rdc)
1035 if (strcmp(rdc->mode, "async") == 0)
1046 rdc_reconfig_pbmp(rdcconfig_t *rdc, char *pbmp)
1056 rdccfg.rdc_set[0] = config2set(rdc);
1059 rdccfg.options |= set_mode(rdc);
1062 if (can_reconfig_pbmp(rdc, pbmp))
1065 populate_rc(rc, rdc);
1067 if ((rc->rc == 0) && (rdc->persist))
1068 if (replace_cfgfield(rdc, "pbitmap", pbmp) < 0) {
1076 rdc_reconfig_sbmp(rdcconfig_t *rdc, char *sbmp)
1086 rdccfg.rdc_set[0] = config2set(rdc);
1089 rdccfg.options |= set_mode(rdc);
1092 if (can_reconfig_sbmp(rdc, sbmp))
1095 populate_rc(rc, rdc);
1097 if ((rc->rc == 0) && (rdc->persist))
1098 replace_cfgfield(rdc, "sbitmap", sbmp);
1104 rdc_reconfig_group(rdcconfig_t *rdc, char *group)
1112 rdcp = rdc;
1141 rdcp = rdc;
1150 rdc_reconfig_ctag(rdcconfig_t *rdc, char *ctag)
1156 rdc_set_sync(rdcconfig_t *rdc)
1164 rdcp = rdc;
1173 rdccfg.rdc_set[0] = config2set(rdc);
1191 rdcp = rdc;
1200 rdc_set_async(rdcconfig_t *rdc)
1208 rdcp = rdc;
1234 rdcp = rdc;
1243 rdc_health(rdcconfig_t *rdc)
1250 rdcp = rdc;
1280 rdc_reverse_role(rdcconfig_t *rdc)
1288 rdcp = rdc;
1315 rdcp = rdc;