option 422 daemons/execd/pacemaker-execd.c const char *option = NULL; option 484 daemons/execd/pacemaker-execd.c option = pcmk__env_option(PCMK__ENV_LOGFACILITY); option 485 daemons/execd/pacemaker-execd.c if (!pcmk__str_eq(option, PCMK_VALUE_NONE, option 487 daemons/execd/pacemaker-execd.c && !pcmk__str_eq(option, "/dev/null", pcmk__str_none)) { option 489 daemons/execd/pacemaker-execd.c pcmk__set_env_option("LOGFACILITY", option, true); option 492 daemons/execd/pacemaker-execd.c option = pcmk__env_option(PCMK__ENV_LOGFILE); option 493 daemons/execd/pacemaker-execd.c if (!pcmk__str_eq(option, PCMK_VALUE_NONE, option 495 daemons/execd/pacemaker-execd.c pcmk__set_env_option("LOGFILE", option, true); option 498 daemons/execd/pacemaker-execd.c pcmk__set_env_option("DEBUGLOG", option, true); option 40 include/crm/common/health_internal.h int pcmk__health_score(const char *option, const pcmk_scheduler_t *scheduler); option 35 include/crm/common/options_internal.h const char *pcmk__env_option(const char *option); option 36 include/crm/common/options_internal.h void pcmk__set_env_option(const char *option, const char *value, bool compat); option 37 include/crm/common/options_internal.h bool pcmk__env_option_enabled(const char *daemon, const char *option); option 82 lib/common/health.c pcmk__health_score(const char *option, const pcmk_scheduler_t *scheduler) option 88 lib/common/health.c CRM_CHECK((option != NULL) && (scheduler != NULL), return 0); option 90 lib/common/health.c value = pcmk__cluster_option(scheduler->priv->options, option); option 94 lib/common/health.c option, value, pcmk_rc_str(rc)); option 1075 lib/common/options.c pcmk__env_option(const char *option) option 1081 lib/common/options.c CRM_CHECK(!pcmk__str_empty(option), return NULL); option 1084 lib/common/options.c int rv = snprintf(env_name, NAME_MAX, "%s%s", prefixes[i], option); option 1087 lib/common/options.c crm_err("Failed to write %s%s to buffer: %s", prefixes[i], option, option 1093 lib/common/options.c crm_trace("\"%s%s\" is too long", prefixes[i], option); option 1104 lib/common/options.c crm_trace("Nothing found for %s", option); option 1125 lib/common/options.c pcmk__set_env_option(const char *option, const char *value, bool compat) option 1131 lib/common/options.c CRM_CHECK(!pcmk__str_empty(option) && (strchr(option, '=') == NULL), option 1135 lib/common/options.c int rv = snprintf(env_name, NAME_MAX, "%s%s", prefixes[i], option); option 1138 lib/common/options.c crm_err("Failed to write %s%s to buffer: %s", prefixes[i], option, option 1144 lib/common/options.c crm_trace("\"%s%s\" is too long", prefixes[i], option); option 1182 lib/common/options.c pcmk__env_option_enabled(const char *daemon, const char *option) option 1184 lib/common/options.c const char *value = pcmk__env_option(option); option 1333 lib/common/options.c cluster_option_value(GHashTable *table, const pcmk__cluster_option_t *option) option 1337 lib/common/options.c pcmk__assert((option != NULL) && (option->name != NULL)); option 1340 lib/common/options.c value = g_hash_table_lookup(table, option->name); option 1342 lib/common/options.c if ((value == NULL) && (option->alt_name != NULL)) { option 1343 lib/common/options.c value = g_hash_table_lookup(table, option->alt_name); option 1348 lib/common/options.c option->alt_name, option->name); option 1351 lib/common/options.c pcmk__insert_dup(table, option->name, value); option 1355 lib/common/options.c if ((value != NULL) && (option->is_valid != NULL) option 1356 lib/common/options.c && !option->is_valid(value)) { option 1359 lib/common/options.c "because '%s' is invalid", option->name, value); option 1369 lib/common/options.c value = option->default_value; option 1373 lib/common/options.c option->name); option 1377 lib/common/options.c CRM_CHECK((option->is_valid == NULL) || option->is_valid(value), option 1379 lib/common/options.c option->name); option 1383 lib/common/options.c value, option->name); option 1385 lib/common/options.c pcmk__insert_dup(table, option->name, value); option 1402 lib/common/options.c for (const pcmk__cluster_option_t *option = cluster_options; option 1403 lib/common/options.c option->name != NULL; option++) { option 1405 lib/common/options.c if (pcmk__str_eq(name, option->name, pcmk__str_casei)) { option 1406 lib/common/options.c return cluster_option_value(options, option); option 1548 lib/common/options.c for (const pcmk__cluster_option_t *option = cluster_options; option 1549 lib/common/options.c option->name != NULL; option++) { option 1551 lib/common/options.c cluster_option_value(options, option); option 25 lib/common/options_display.c const pcmk__cluster_option_t *option) option 30 lib/common/options_display.c pcmk__assert(option->type != NULL); option 32 lib/common/options_display.c if (pcmk_is_set(option->flags, pcmk__opt_generated)) { option 36 lib/common/options_display.c if ((option->values != NULL) && (strcmp(option->type, "select") == 0)) { option 38 lib/common/options_display.c bool found_default = (option->default_value == NULL); option 39 lib/common/options_display.c char *str = pcmk__str_copy(option->values); option 51 lib/common/options_display.c if (!found_default && (strcmp(value, option->default_value) == 0)) { option 58 lib/common/options_display.c } else if (option->default_value != NULL) { option 60 lib/common/options_display.c option->type, _(" (default: \""), option->default_value, option 64 lib/common/options_display.c pcmk__g_strcat(buf, option->type, _(" (no default)"), NULL); option 80 lib/common/options_display.c const pcmk__cluster_option_t *option) option 82 lib/common/options_display.c const char *desc_short = option->description_short; option 83 lib/common/options_display.c const char *desc_long = option->description_long; option 92 lib/common/options_display.c out->list_item(out, option->name, "%s", _(desc_short)); option 99 lib/common/options_display.c add_possible_values_default(out, option); option 155 lib/common/options_display.c for (const pcmk__cluster_option_t *option = option_list; option 156 lib/common/options_display.c option->name != NULL; option++) { option 159 lib/common/options_display.c if (pcmk_all_flags_set(option->flags, filter)) { option 160 lib/common/options_display.c if (pcmk_is_set(option->flags, pcmk__opt_deprecated)) { option 162 lib/common/options_display.c deprecated = g_slist_prepend(deprecated, (gpointer) option); option 165 lib/common/options_display.c } else if (pcmk_is_set(option->flags, pcmk__opt_advanced)) { option 167 lib/common/options_display.c advanced = g_slist_prepend(advanced, (gpointer) option); option 172 lib/common/options_display.c add_option_metadata_default(out, option); option 183 lib/common/options_display.c const pcmk__cluster_option_t *option = iter->data; option 186 lib/common/options_display.c add_option_metadata_default(out, option); option 200 lib/common/options_display.c const pcmk__cluster_option_t *option = iter->data; option 203 lib/common/options_display.c add_option_metadata_default(out, option); option 262 lib/common/options_display.c const pcmk__cluster_option_t *option) option 264 lib/common/options_display.c if ((option->values != NULL) && (strcmp(option->type, "select") == 0)) { option 266 lib/common/options_display.c char *str = pcmk__str_copy(option->values); option 316 lib/common/options_display.c const pcmk__cluster_option_t *option) option 318 lib/common/options_display.c const char *type = option->type; option 319 lib/common/options_display.c const char *desc_long = option->description_long; option 320 lib/common/options_display.c const char *desc_short = option->description_short; option 321 lib/common/options_display.c const bool advanced = pcmk_is_set(option->flags, pcmk__opt_advanced); option 322 lib/common/options_display.c const bool deprecated = pcmk_is_set(option->flags, pcmk__opt_deprecated); option 323 lib/common/options_display.c const bool generated = pcmk_is_set(option->flags, pcmk__opt_generated); option 351 lib/common/options_display.c if (option->values != NULL) { option 353 lib/common/options_display.c desc_long, option->values); option 360 lib/common/options_display.c if (desc_long != option->description_long) { option 367 lib/common/options_display.c desc_short = pcmk__s(option->description_short, ""); option 392 lib/common/options_display.c PCMK_XA_NAME, option->name, option 406 lib/common/options_display.c PCMK_XA_DEFAULT, option->default_value, option 409 lib/common/options_display.c add_possible_values_xml(out, option); option 464 lib/common/options_display.c for (const pcmk__cluster_option_t *option = option_list; option 465 lib/common/options_display.c option->name != NULL; option++) { option 467 lib/common/options_display.c if (pcmk_all_flags_set(option->flags, filter)) { option 468 lib/common/options_display.c add_option_metadata_xml(out, option); option 78 lib/pengine/group.c set_group_flag(pcmk_resource_t *group, const char *option, uint32_t flag, option 84 lib/pengine/group.c value_s = g_hash_table_lookup(group->priv->meta, option); option 97 lib/pengine/group.c "(use a resource set instead)", option); option 51 lib/pengine/unpack.c #define set_config_flag(scheduler, option, flag) do { \ option 53 lib/pengine/unpack.c const char *scf_value = pcmk__cluster_option(config_hash, (option)); \ option 1029 tools/crm_mon.c #define print_option_help(out, option, condition) \ option 1030 tools/crm_mon.c curses_formatted_printf(out, "%c %c: \t%s\n", ((condition)? '*': ' '), option, get_option_desc(option));