cib_root 44 cib/common.c extern const char *cib_root; cib_root 41 cib/common.h extern const char *cib_root; cib_root 44 cib/io.c extern const char *cib_root; cib_root 57 cib/io.c char *new = crm_strdup_printf("%s/cib.auto.XXXXXX", cib_root); cib_root 118 cib/io.c char *a_path = crm_strdup_printf("%s/%s", cib_root, a->d_name); cib_root 167 cib/io.c char *a_path = crm_strdup_printf("%s/%s", cib_root, a[0]->d_name); cib_root 168 cib/io.c char *b_path = crm_strdup_printf("%s/%s", cib_root, b[0]->d_name); cib_root 222 cib/io.c crm_warn("Primary configuration corrupt or unusable, trying backups in %s", cib_root); cib_root 223 cib/io.c lpc = scandir(cib_root, &namelist, cib_archive_filter, cib_archive_sort); cib_root 225 cib/io.c crm_perror(LOG_NOTICE, "scandir(%s) failed", cib_root); cib_root 234 cib/io.c filename = crm_strdup_printf("%s/%s", cib_root, namelist[lpc]->d_name); cib_root 483 cib/io.c exit_rc = cib_file_write_with_digest(cib_local, cib_root, "cib.xml"); cib_root 75 cib/main.c const char *cib_root = NULL; cib_root 194 cib/main.c cib_root = optarg; cib_root 219 cib/main.c if (cib_root == NULL) { cib_root 224 cib/main.c cib_root = CRM_LEGACY_CONFIG_DIR; cib_root 227 cib/main.c cib_root = CRM_CONFIG_DIR; cib_root 230 cib/main.c crm_notice("Using custom config location: %s", cib_root); cib_root 233 cib/main.c if (crm_is_writable(cib_root, NULL, CRM_DAEMON_USER, CRM_DAEMON_GROUP, FALSE) == FALSE) { cib_root 234 cib/main.c crm_err("Bad permissions on %s. Terminating", cib_root); cib_root 235 cib/main.c fprintf(stderr, "ERROR: Bad permissions on %s. See logs for details\n", cib_root); cib_root 556 cib/main.c xmlNode *cib = readCibXmlFile(cib_root, filename, !preserve_status); cib_root 218 include/crm/cib/internal.h int cib_file_write_with_digest(xmlNode *cib_root, const char *cib_dirname, cib_root 346 lib/cib/cib_file.c cib_file_write_with_digest(xmlNode *cib_root, const char *cib_dirname, cib_root 354 lib/cib/cib_file.c const char *epoch = crm_element_value(cib_root, XML_ATTR_GENERATION); cib_root 355 lib/cib/cib_file.c const char *admin_epoch = crm_element_value(cib_root, cib_root 387 lib/cib/cib_file.c cib_file_prepare_xml(cib_root); cib_root 413 lib/cib/cib_file.c if (write_xml_fd(cib_root, tmp_cib, fd, FALSE) <= 0) { cib_root 420 lib/cib/cib_file.c digest = calculate_on_disk_digest(cib_root); cib_root 248 lib/cib/cib_utils.c xmlNode *cib_root = NULL, *config = NULL; cib_root 250 lib/cib/cib_utils.c cib_root = create_xml_node(NULL, XML_TAG_CIB); cib_root 251 lib/cib/cib_utils.c crm_xml_add(cib_root, XML_ATTR_CRM_VERSION, CRM_FEATURE_SET); cib_root 252 lib/cib/cib_utils.c crm_xml_add(cib_root, XML_ATTR_VALIDATION, xml_latest_schema()); cib_root 254 lib/cib/cib_utils.c crm_xml_add_int(cib_root, XML_ATTR_GENERATION, admin_epoch); cib_root 255 lib/cib/cib_utils.c crm_xml_add_int(cib_root, XML_ATTR_NUMUPDATES, 0); cib_root 256 lib/cib/cib_utils.c crm_xml_add_int(cib_root, XML_ATTR_GENERATION_ADMIN, 0); cib_root 258 lib/cib/cib_utils.c config = create_xml_node(cib_root, XML_CIB_TAG_CONFIGURATION); cib_root 259 lib/cib/cib_utils.c create_xml_node(cib_root, XML_CIB_TAG_STATUS); cib_root 266 lib/cib/cib_utils.c return cib_root;