options 109 daemons/based/based_common.c cib_cleanup_query(int options, xmlNode ** data, xmlNode ** output) options 112 daemons/based/based_common.c if ((options & cib_no_children) options 120 daemons/based/based_common.c cib_cleanup_data(int options, xmlNode ** data, xmlNode ** output) options 128 daemons/based/based_common.c cib_cleanup_output(int options, xmlNode ** data, xmlNode ** output) options 135 daemons/based/based_common.c cib_cleanup_none(int options, xmlNode ** data, xmlNode ** output) options 298 daemons/based/based_common.c cib_op_cleanup(int call_type, int options, xmlNode ** input, xmlNode ** output) options 301 daemons/based/based_common.c return cib_server_ops[call_type].cleanup(options, input, output); options 52 daemons/based/based_messages.c cib_process_shutdown_req(const char *op, int options, const char *section, xmlNode * req, options 76 daemons/based/based_messages.c cib_process_default(const char *op, int options, const char *section, xmlNode * req, options 100 daemons/based/based_messages.c cib_process_readwrite(const char *op, int options, const char *section, xmlNode * req, options 155 daemons/based/based_messages.c cib_process_ping(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, options 203 daemons/based/based_messages.c cib_process_sync(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, options 210 daemons/based/based_messages.c cib_process_upgrade_server(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, options 224 daemons/based/based_messages.c op, options, section, req, input, existing_cib, result_cib, answer); options 258 daemons/based/based_messages.c op, options, section, up, input, existing_cib, result_cib, answer); options 302 daemons/based/based_messages.c cib_process_sync_one(const char *op, int options, const char *section, xmlNode * req, options 310 daemons/based/based_messages.c cib_server_process_diff(const char *op, int options, const char *section, xmlNode * req, options 344 daemons/based/based_messages.c rc = cib_process_diff(op, options, section, req, input, existing_cib, result_cib, answer); options 354 daemons/based/based_messages.c if (options & cib_force_diff) { options 371 daemons/based/based_messages.c cib_process_replace_svr(const char *op, int options, const char *section, xmlNode * req, options 377 daemons/based/based_messages.c cib_process_replace(op, options, section, req, input, existing_cib, result_cib, answer); options 444 daemons/based/based_messages.c cib_process_delete_absolute(const char *op, int options, const char *section, xmlNode * req, options 42 daemons/based/based_notify.c static void do_cib_notify(int options, const char *op, xmlNode *update, options 137 daemons/based/based_notify.c cib_diff_notify(int options, const char *client, const char *call_id, const char *op, options 175 daemons/based/based_notify.c do_cib_notify(options, op, update, result, diff, T_CIB_DIFF_NOTIFY); options 179 daemons/based/based_notify.c do_cib_notify(int options, const char *op, xmlNode * update, options 100 daemons/based/pacemaker-based.h int cib_process_shutdown_req(const char *op, int options, const char *section, options 104 daemons/based/pacemaker-based.h int cib_process_default(const char *op, int options, const char *section, options 107 daemons/based/pacemaker-based.h int cib_process_ping(const char *op, int options, const char *section, options 110 daemons/based/pacemaker-based.h int cib_process_readwrite(const char *op, int options, const char *section, options 113 daemons/based/pacemaker-based.h int cib_process_replace_svr(const char *op, int options, const char *section, options 116 daemons/based/pacemaker-based.h int cib_server_process_diff(const char *op, int options, const char *section, options 119 daemons/based/pacemaker-based.h int cib_process_sync(const char *op, int options, const char *section, options 122 daemons/based/pacemaker-based.h int cib_process_sync_one(const char *op, int options, const char *section, options 125 daemons/based/pacemaker-based.h int cib_process_delete_absolute(const char *op, int options, options 129 daemons/based/pacemaker-based.h int cib_process_upgrade_server(const char *op, int options, const char *section, options 142 daemons/based/pacemaker-based.h int cib_op_cleanup(int call_type, int options, xmlNode **input, options 146 daemons/based/pacemaker-based.h void cib_diff_notify(int options, const char *client, const char *call_id, options 234 daemons/controld/controld_based.c int options) options 272 daemons/controld/controld_based.c cib__set_call_options(options, "node state deletion", options 274 daemons/controld/controld_based.c call_id = fsa_cib_conn->cmds->remove(fsa_cib_conn, xpath, NULL, options); options 676 daemons/controld/controld_control.c verify_crmd_options(GHashTable * options) options 678 daemons/controld/controld_control.c pcmk__validate_cluster_options(options, crmd_opts, PCMK__NELEM(crmd_opts)); options 682 daemons/controld/controld_control.c crmd_pref(GHashTable * options, const char *name) options 684 daemons/controld/controld_control.c return pcmk__cluster_option(options, crmd_opts, PCMK__NELEM(crmd_opts), options 609 daemons/controld/controld_execd_state.c const char *agent, char **output, enum lrmd_call_options options) options 635 daemons/controld/controld_execd_state.c class, provider, agent, output, options, params); options 656 daemons/controld/controld_execd_state.c lrm_state_get_rsc_info(lrm_state_t * lrm_state, const char *rsc_id, enum lrmd_call_options options) options 670 daemons/controld/controld_execd_state.c rsc = ((lrmd_t *) lrm_state->conn)->cmds->get_rsc_info(lrm_state->conn, rsc_id, options); options 739 daemons/controld/controld_execd_state.c const char *provider, const char *agent, enum lrmd_call_options options) options 755 daemons/controld/controld_execd_state.c agent, options); options 760 daemons/controld/controld_execd_state.c const char *rsc_id, enum lrmd_call_options options) options 778 daemons/controld/controld_execd_state.c return ((lrmd_t *) lrm_state->conn)->cmds->unregister_rsc(lrm_state->conn, rsc_id, options); options 887 daemons/controld/controld_fencing.c uint32_t options = st_opt_none; // Group of enum stonith_call_options options 892 daemons/controld/controld_fencing.c stonith__set_call_options(options, target, st_opt_allow_suicide); options 895 daemons/controld/controld_fencing.c return stonith_api->cmds->fence_with_delay(stonith_api, options, target, options 149 daemons/controld/controld_lrm.h const char *agent, char **output, enum lrmd_call_options options); options 158 daemons/controld/controld_lrm.h const char *rsc_id, enum lrmd_call_options options); options 162 daemons/controld/controld_lrm.h const char *provider, const char *agent, enum lrmd_call_options options); options 164 daemons/controld/controld_lrm.h const char *rsc_id, enum lrmd_call_options options); options 22 daemons/controld/controld_utils.h # define fsa_cib_update(section, data, options, call_id, user_name) \ options 26 daemons/controld/controld_utils.h NULL, options, user_name); \ options 111 daemons/controld/controld_utils.h enum controld_section_e section, int options); options 148 daemons/execd/cts-exec-helper.c } options; options 163 daemons/execd/cts-exec-helper.c if (!options.quiet) { \ options 187 daemons/execd/cts-exec-helper.c if (options.listen) { options 188 daemons/execd/cts-exec-helper.c if (pcmk__str_eq(options.listen, event_buf_v0, pcmk__str_casei)) { options 204 daemons/execd/cts-exec-helper.c if (!options.listen) { options 265 daemons/execd/cts-exec-helper.c if (!options.no_connect) { options 274 daemons/execd/cts-exec-helper.c if (options.timeout) { options 275 daemons/execd/cts-exec-helper.c g_timeout_add(options.timeout, timeout_err, NULL); options 278 daemons/execd/cts-exec-helper.c if (!options.api_call) { options 282 daemons/execd/cts-exec-helper.c if (pcmk__str_eq(options.api_call, "exec", pcmk__str_casei)) { options 284 daemons/execd/cts-exec-helper.c options.rsc_id, options 285 daemons/execd/cts-exec-helper.c options.action, options 287 daemons/execd/cts-exec-helper.c options.interval_ms, options 288 daemons/execd/cts-exec-helper.c options.timeout, options 289 daemons/execd/cts-exec-helper.c options.start_delay, exec_call_opts, options.params); options 296 daemons/execd/cts-exec-helper.c } else if (pcmk__str_eq(options.api_call, "register_rsc", pcmk__str_casei)) { options 298 daemons/execd/cts-exec-helper.c options.rsc_id, options 299 daemons/execd/cts-exec-helper.c options.class, options.provider, options.type, 0); options 300 daemons/execd/cts-exec-helper.c } else if (pcmk__str_eq(options.api_call, "get_rsc_info", pcmk__str_casei)) { options 303 daemons/execd/cts-exec-helper.c rsc_info = lrmd_conn->cmds->get_rsc_info(lrmd_conn, options.rsc_id, 0); options 315 daemons/execd/cts-exec-helper.c } else if (pcmk__str_eq(options.api_call, "unregister_rsc", pcmk__str_casei)) { options 316 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->unregister_rsc(lrmd_conn, options.rsc_id, 0); options 317 daemons/execd/cts-exec-helper.c } else if (pcmk__str_eq(options.api_call, "cancel", pcmk__str_casei)) { options 318 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->cancel(lrmd_conn, options.rsc_id, options.action, options 319 daemons/execd/cts-exec-helper.c options.interval_ms); options 320 daemons/execd/cts-exec-helper.c } else if (pcmk__str_eq(options.api_call, "metadata", pcmk__str_casei)) { options 324 daemons/execd/cts-exec-helper.c options.class, options 325 daemons/execd/cts-exec-helper.c options.provider, options.type, &output, 0); options 330 daemons/execd/cts-exec-helper.c } else if (pcmk__str_eq(options.api_call, "list_agents", pcmk__str_casei)) { options 334 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->list_agents(lrmd_conn, &list, options.class, options.provider); options 347 daemons/execd/cts-exec-helper.c } else if (pcmk__str_eq(options.api_call, "list_ocf_providers", pcmk__str_casei)) { options 351 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->list_ocf_providers(lrmd_conn, options.type, &list); options 365 daemons/execd/cts-exec-helper.c } else if (pcmk__str_eq(options.api_call, "list_standards", pcmk__str_casei)) { options 383 daemons/execd/cts-exec-helper.c } else if (pcmk__str_eq(options.api_call, "get_recurring_ops", pcmk__str_casei)) { options 386 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->get_recurring_ops(lrmd_conn, options.rsc_id, 0, 0, options 399 daemons/execd/cts-exec-helper.c } else if (options.api_call) { options 400 daemons/execd/cts-exec-helper.c print_result(printf("API-CALL FAILURE unknown action '%s'\n", options.action)); options 405 daemons/execd/cts-exec-helper.c print_result(printf("API-CALL FAILURE for '%s' api_rc:%d\n", options.api_call, rc)); options 409 daemons/execd/cts-exec-helper.c if (options.api_call && rc == pcmk_ok) { options 410 daemons/execd/cts-exec-helper.c print_result(printf("API-CALL SUCCESSFUL for '%s'\n", options.api_call)); options 411 daemons/execd/cts-exec-helper.c if (!options.listen) { options 416 daemons/execd/cts-exec-helper.c if (options.no_wait) { options 435 daemons/execd/cts-exec-helper.c if (options.params) { options 463 daemons/execd/cts-exec-helper.c if (options.rsc_id) { options 464 daemons/execd/cts-exec-helper.c rsc = pe_find_resource_with_flags(data_set->resources, options.rsc_id, options 485 daemons/execd/cts-exec-helper.c options.params = lrmd_key_value_add(options.params, key, value); options 497 daemons/execd/cts-exec-helper.c options.params = lrmd_key_value_add(options.params, crm_name, value); options 534 daemons/execd/cts-exec-helper.c ++options.verbose; options 538 daemons/execd/cts-exec-helper.c options.quiet = 1; options 539 daemons/execd/cts-exec-helper.c options.verbose = 0; options 542 daemons/execd/cts-exec-helper.c options.listen = optarg; options 545 daemons/execd/cts-exec-helper.c options.no_wait = 1; options 548 daemons/execd/cts-exec-helper.c options.is_running = 1; options 557 daemons/execd/cts-exec-helper.c options.api_call = optarg; options 560 daemons/execd/cts-exec-helper.c options.action = optarg; options 563 daemons/execd/cts-exec-helper.c options.rsc_id = optarg; options 567 daemons/execd/cts-exec-helper.c options.cancel_call_id = atoi(optarg); options 571 daemons/execd/cts-exec-helper.c options.provider = optarg; options 574 daemons/execd/cts-exec-helper.c options.class = optarg; options 577 daemons/execd/cts-exec-helper.c options.type = optarg; options 581 daemons/execd/cts-exec-helper.c options.interval_ms = crm_parse_interval_spec(optarg); options 586 daemons/execd/cts-exec-helper.c options.timeout = atoi(optarg); options 591 daemons/execd/cts-exec-helper.c options.start_delay = atoi(optarg); options 597 daemons/execd/cts-exec-helper.c options.params = lrmd_key_value_add(options.params, key, val); options 604 daemons/execd/cts-exec-helper.c options.params = lrmd_key_value_add(options.params, key, val); options 624 daemons/execd/cts-exec-helper.c if (!options.listen && pcmk__strcase_any_of(options.api_call, "metadata", "list_agents", options 626 daemons/execd/cts-exec-helper.c options.no_connect = 1; options 629 daemons/execd/cts-exec-helper.c crm_log_init(NULL, LOG_INFO, TRUE, (options.verbose? TRUE : FALSE), options 632 daemons/execd/cts-exec-helper.c if (options.is_running) { options 633 daemons/execd/cts-exec-helper.c if (!options.timeout) { options 634 daemons/execd/cts-exec-helper.c options.timeout = 30000; options 636 daemons/execd/cts-exec-helper.c options.interval_ms = 0; options 637 daemons/execd/cts-exec-helper.c if (!options.rsc_id) { options 647 daemons/execd/cts-exec-helper.c options.api_call = "exec"; options 648 daemons/execd/cts-exec-helper.c options.action = "monitor"; options 654 daemons/execd/cts-exec-helper.c if (!options.api_call && !options.listen) { options 84 daemons/fenced/fenced_commands.c int options; options 275 daemons/fenced/fenced_commands.c crm_element_value_int(msg, F_STONITH_CALLOPTS, &(cmd->options)); options 2476 daemons/fenced/fenced_commands.c stonith_send_reply(reply, cmd->options, cmd->origin, client); options 2718 daemons/fenced/fenced_commands.c if (pcmk_is_set(cmd->options, st_opt_cs_nodeid)) { options 2823 daemons/fenced/fenced_commands.c crm_xml_add_int(reply, F_STONITH_CALLOPTS, cmd->options); options 444 daemons/fenced/fenced_history.c const char *remote_peer, int options) options 452 daemons/fenced/fenced_history.c if (target && (options & st_opt_cs_nodeid)) { options 464 daemons/fenced/fenced_history.c if (options & st_opt_cleanup) { options 470 daemons/fenced/fenced_history.c } else if (options & st_opt_broadcast) { options 1328 daemons/fenced/fenced_remote.c find_best_peer(const char *device, remote_fencing_op_t * op, enum find_best_peer_options options) options 1331 daemons/fenced/fenced_remote.c gboolean verified_devices_only = (options & FIND_PEER_VERIFIED_ONLY) ? TRUE : FALSE; options 1342 daemons/fenced/fenced_remote.c pcmk__plural_s(peer->ndevices), peer->tried, options); options 1343 daemons/fenced/fenced_remote.c if ((options & FIND_PEER_SKIP_TARGET) && pcmk__str_eq(peer->host, op->target, pcmk__str_casei)) { options 1346 daemons/fenced/fenced_remote.c if ((options & FIND_PEER_TARGET_ONLY) && !pcmk__str_eq(peer->host, op->target, pcmk__str_casei)) { options 262 daemons/fenced/pacemaker-fenced.h const char *remote_peer, int options); options 39 daemons/pacemakerd/pacemakerd.c } options; options 94 daemons/pacemakerd/pacemakerd.c options.standby = TRUE; options 100 daemons/pacemakerd/pacemakerd.c { "features", 'F', 0, G_OPTION_ARG_NONE, &options.features, options 103 daemons/pacemakerd/pacemakerd.c { "foreground", 'f', 0, G_OPTION_ARG_NONE, &options.foreground, options 109 daemons/pacemakerd/pacemakerd.c { "shutdown", 'S', 0, G_OPTION_ARG_NONE, &options.shutdown, options 290 daemons/pacemakerd/pacemakerd.c if (options.features) { options 303 daemons/pacemakerd/pacemakerd.c if (options.shutdown) { options 322 daemons/pacemakerd/pacemakerd.c if (options.shutdown) { options 31 daemons/schedulerd/pacemaker-schedulerd.c } options; options 54 daemons/schedulerd/pacemaker-schedulerd.c { G_OPTION_REMAINING, 0, G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING_ARRAY, &options.remainder, options 97 daemons/schedulerd/pacemaker-schedulerd.c if (options.remainder) { options 98 daemons/schedulerd/pacemaker-schedulerd.c if (g_strv_length(options.remainder) == 1 && options 99 daemons/schedulerd/pacemaker-schedulerd.c pcmk__str_eq("metadata", options.remainder[0], pcmk__str_casei)) { options 149 daemons/schedulerd/pacemaker-schedulerd.c g_strfreev(options.remainder); options 82 include/crm/cib/internal.h gboolean cib_read_config(GHashTable * options, xmlNode * current_cib); options 83 include/crm/cib/internal.h void verify_cib_options(GHashTable * options); options 151 include/crm/cib/internal.h int cib_process_query(const char *op, int options, const char *section, xmlNode * req, options 155 include/crm/cib/internal.h int cib_process_erase(const char *op, int options, const char *section, xmlNode * req, options 159 include/crm/cib/internal.h int cib_process_bump(const char *op, int options, const char *section, xmlNode * req, options 163 include/crm/cib/internal.h int cib_process_replace(const char *op, int options, const char *section, xmlNode * req, options 167 include/crm/cib/internal.h int cib_process_create(const char *op, int options, const char *section, xmlNode * req, options 171 include/crm/cib/internal.h int cib_process_modify(const char *op, int options, const char *section, xmlNode * req, options 175 include/crm/cib/internal.h int cib_process_delete(const char *op, int options, const char *section, xmlNode * req, options 179 include/crm/cib/internal.h int cib_process_diff(const char *op, int options, const char *section, xmlNode * req, options 183 include/crm/cib/internal.h int cib_process_upgrade(const char *op, int options, const char *section, xmlNode * req, options 206 include/crm/cib/internal.h int cib_process_xpath(const char *op, int options, const char *section, xmlNode * req, options 255 include/crm/cib/internal.h int cib__delete_node_attr(pcmk__output_t *out, cib_t *cib, int options, options 48 include/crm/cib/util.h int delete_attr_delegate(cib_t * the_cib, int options, options 63 include/crm/cib/util.h const char *cib_pref(GHashTable * options, const char *name); options 36 include/crm/common/attrd_internal.h int options); options 41 include/crm/common/attrd_internal.h const char *user_name, int options); options 96 include/crm/common/options_internal.h const char *pcmk__cluster_option(GHashTable *options, options 104 include/crm/common/options_internal.h void pcmk__validate_cluster_options(GHashTable *options, options 137 include/crm/common/output_internal.h GOptionEntry *options; options 574 include/crm/common/output_internal.h pcmk__output_factory_t create, GOptionEntry *options); options 338 include/crm/lrmd.h const char *provider, const char *agent, enum lrmd_call_options options); options 346 include/crm/lrmd.h const char *rsc_id, enum lrmd_call_options options); options 354 include/crm/lrmd.h enum lrmd_call_options options, GList **output); options 368 include/crm/lrmd.h int (*unregister_rsc) (lrmd_t * lrmd, const char *rsc_id, enum lrmd_call_options options); options 392 include/crm/lrmd.h enum lrmd_call_options options, lrmd_key_value_t * params); /* ownership of params is given up to api here */ options 435 include/crm/lrmd.h const char *agent, char **output, enum lrmd_call_options options); options 505 include/crm/lrmd.h char **output, enum lrmd_call_options options, options 144 include/crm/pengine/common.h const char *pe_pref(GHashTable * options, const char *name); options 225 include/crm/pengine/internal.h void verify_pe_options(GHashTable * options); options 243 include/crm/pengine/internal.h void native_print(pe_resource_t * rsc, const char *pre_text, long options, void *print_data); options 244 include/crm/pengine/internal.h void group_print(pe_resource_t * rsc, const char *pre_text, long options, void *print_data); options 245 include/crm/pengine/internal.h void clone_print(pe_resource_t * rsc, const char *pre_text, long options, void *print_data); options 246 include/crm/pengine/internal.h void pe__print_bundle(pe_resource_t *rsc, const char *pre_text, long options, options 513 include/crm/pengine/internal.h void print_rscs_brief(GList *rsc_list, const char * pre_text, long options, options 515 include/crm/pengine/internal.h int pe__rscs_brief_output(pcmk__output_t *out, GList *rsc_list, unsigned int options); options 520 include/crm/pengine/internal.h void common_print(pe_resource_t * rsc, const char *pre_text, const char *name, pe_node_t *node, long options, void *print_data); options 521 include/crm/pengine/internal.h int pe__common_output_text(pcmk__output_t *out, pe_resource_t * rsc, const char *name, pe_node_t *node, unsigned int options); options 522 include/crm/pengine/internal.h int pe__common_output_html(pcmk__output_t *out, pe_resource_t * rsc, const char *name, pe_node_t *node, unsigned int options); options 178 include/crm/stonith-ng.h stonith_t *st, int options, const char *name); options 187 include/crm/stonith-ng.h stonith_t *st, int options, const char *id, options 197 include/crm/stonith-ng.h stonith_t *st, int options, const char *node, int level); options 206 include/crm/stonith-ng.h stonith_t *st, int options, const char *node, int level, stonith_key_value_t *device_list); options 215 include/crm/stonith-ng.h int (*metadata)(stonith_t *st, int options, options 236 include/crm/stonith-ng.h int (*list)(stonith_t *st, int options, const char *id, char **list_output, int timeout); options 244 include/crm/stonith-ng.h int (*monitor)(stonith_t *st, int options, const char *id, int timeout); options 252 include/crm/stonith-ng.h int (*status)(stonith_t *st, int options, const char *id, const char *port, int timeout); options 262 include/crm/stonith-ng.h int (*query)(stonith_t *st, int options, const char *node, options 280 include/crm/stonith-ng.h int (*fence)(stonith_t *st, int options, const char *node, const char *action, options 289 include/crm/stonith-ng.h int (*confirm)(stonith_t *st, int options, const char *node); options 296 include/crm/stonith-ng.h int (*history)(stonith_t *st, int options, const char *node, stonith_history_t **output, int timeout); options 330 include/crm/stonith-ng.h int options, options 358 include/crm/stonith-ng.h int (*remove_level_full)(stonith_t *st, int options, options 379 include/crm/stonith-ng.h int (*register_level_full)(stonith_t *st, int options, options 424 include/crm/stonith-ng.h int (*fence_with_delay)(stonith_t *st, int options, const char *node, const char *action, options 371 lib/cib/cib_attrs.c cib__delete_node_attr(pcmk__output_t *out, cib_t *cib, int options, const char *section, options 396 lib/cib/cib_attrs.c options | cib_quorum_override, user_name); options 480 lib/cib/cib_attrs.c delete_attr_delegate(cib_t *cib, int options, const char *section, const char *node_uuid, options 493 lib/cib/cib_attrs.c rc = cib__delete_node_attr(out, cib, options, section, node_uuid, set_type, options 30 lib/cib/cib_ops.c cib_process_query(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, options 38 lib/cib/cib_ops.c if (options & cib_xpath) { options 39 lib/cib/cib_ops.c return cib_process_xpath(op, options, section, req, input, options 55 lib/cib/cib_ops.c } else if (options & cib_no_children) { options 75 lib/cib/cib_ops.c cib_process_erase(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, options 92 lib/cib/cib_ops.c cib_process_upgrade(const char *op, int options, const char *section, xmlNode * req, options 115 lib/cib/cib_ops.c !(options & cib_verbose)); options 127 lib/cib/cib_ops.c cib_process_bump(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, options 168 lib/cib/cib_ops.c cib_process_replace(const char *op, int options, const char *section, xmlNode * req, options 177 lib/cib/cib_ops.c if (options & cib_xpath) { options 178 lib/cib/cib_ops.c return cib_process_xpath(op, options, section, req, input, options 280 lib/cib/cib_ops.c cib_process_delete(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, options 287 lib/cib/cib_ops.c if (options & cib_xpath) { options 288 lib/cib/cib_ops.c return cib_process_xpath(op, options, section, req, input, options 315 lib/cib/cib_ops.c cib_process_modify(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, options 322 lib/cib/cib_ops.c if (options & cib_xpath) { options 323 lib/cib/cib_ops.c return cib_process_xpath(op, options, section, req, input, options 351 lib/cib/cib_ops.c if (options & cib_can_create) { options 358 lib/cib/cib_ops.c if(options & cib_mixed_update) { options 519 lib/cib/cib_ops.c cib_process_create(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, options 545 lib/cib/cib_ops.c return cib_process_modify(op, options, section, req, input, existing_cib, result_cib, options 584 lib/cib/cib_ops.c cib_process_diff(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, options 595 lib/cib/cib_ops.c (pcmk_is_set(options, cib_force_diff)? " (global update)" : "")); options 675 lib/cib/cib_ops.c cib_process_xpath(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, options 708 lib/cib/cib_ops.c if (pcmk__str_eq(op, CIB_OP_DELETE, pcmk__str_casei) && (options & cib_multiple)) { options 733 lib/cib/cib_ops.c if ((options & cib_multiple) == 0) { options 740 lib/cib/cib_ops.c } else if ((options & cib_multiple) == 0) { options 750 lib/cib/cib_ops.c if (options & cib_no_children) { options 760 lib/cib/cib_ops.c } else if (options & cib_xpath_address) { options 804 lib/cib/cib_ops.c if ((options & cib_multiple) == 0) { options 132 lib/cib/cib_utils.c GHashTable *options = pcmk__strkey_table(free, free); options 134 lib/cib/cib_utils.c cib_read_config(options, xml); options 135 lib/cib/cib_utils.c value = cib_pref(options, "enable-acl"); options 137 lib/cib/cib_utils.c g_hash_table_destroy(options); options 584 lib/cib/cib_utils.c verify_cib_options(GHashTable * options) options 586 lib/cib/cib_utils.c pcmk__validate_cluster_options(options, cib_opts, PCMK__NELEM(cib_opts)); options 590 lib/cib/cib_utils.c cib_pref(GHashTable * options, const char *name) options 592 lib/cib/cib_utils.c return pcmk__cluster_option(options, cib_opts, PCMK__NELEM(cib_opts), options 597 lib/cib/cib_utils.c cib_read_config(GHashTable * options, xmlNode * current_cib) options 602 lib/cib/cib_utils.c if (options == NULL || current_cib == NULL) { options 608 lib/cib/cib_utils.c g_hash_table_remove_all(options); options 613 lib/cib/cib_utils.c options, CIB_OPTIONS_FIRST, TRUE, now, NULL); options 616 lib/cib/cib_utils.c verify_cib_options(options); options 136 lib/common/attrd_client.c const char *dampen, const char *user_name, int options) options 205 lib/common/attrd_client.c pcmk_is_set(options, pcmk__node_attr_remote)); options 207 lib/common/attrd_client.c pcmk_is_set(options, pcmk__node_attr_private)); options 242 lib/common/attrd_client.c int options) options 255 lib/common/attrd_client.c pcmk_is_set(options, pcmk__node_attr_remote)); options 56 lib/common/crmcommon_private.h void pcmk__xml2text(xmlNode *data, int options, char **buffer, int *offset, options 81 lib/common/crmcommon_private.h int options); options 464 lib/common/options.c cluster_option_value(GHashTable *options, bool (*validate)(const char *), options 473 lib/common/options.c if (options) { options 474 lib/common/options.c value = g_hash_table_lookup(options, name); options 477 lib/common/options.c value = g_hash_table_lookup(options, old_name); options 486 lib/common/options.c g_hash_table_insert(options, strdup(name), new_value); options 519 lib/common/options.c if (options) { options 521 lib/common/options.c g_hash_table_insert(options, strdup(name), new_value); options 538 lib/common/options.c pcmk__cluster_option(GHashTable *options, pcmk__cluster_option_t *option_list, options 545 lib/common/options.c value = cluster_option_value(options, option_list[lpc].is_valid, options 683 lib/common/options.c pcmk__validate_cluster_options(GHashTable *options, options 687 lib/common/options.c cluster_option_value(options, option_list[lpc].is_valid, options 81 lib/common/output.c pcmk__output_factory_t create, GOptionEntry *options) { options 90 lib/common/output.c if (options != NULL && group != NULL) { options 91 lib/common/output.c g_option_group_add_entries(group, options); options 107 lib/common/output.c pcmk__register_format(group, entry->name, entry->create, entry->options); options 470 lib/common/patchset.c int options = xml_log_option_formatted; options 606 lib/common/patchset.c options |= xml_log_option_diff_short; options 613 lib/common/patchset.c 0, options|xml_log_option_diff_minus); options 626 lib/common/patchset.c 0, options|xml_log_option_diff_plus); options 87 lib/common/xml.c insert_prefix(int options, char **buffer, int *offset, int *max, int depth) options 89 lib/common/xml.c if (options & xml_log_option_formatted) { options 1419 lib/common/xml.c dump_xml_attr(xmlAttrPtr attr, int options, char **buffer, int *offset, int *max) options 1445 lib/common/xml.c const char *prefix, xmlNode *data, int depth, int options) options 1460 lib/common/xml.c if (pcmk_is_set(options, xml_log_option_open)) { options 1463 lib/common/xml.c insert_prefix(options, &buffer, &offset, &max, depth); options 1482 lib/common/xml.c } else if (pcmk_any_flags_set(options, options 1503 lib/common/xml.c } else if (pcmk_is_set(options, xml_log_option_children)) { options 1521 lib/common/xml.c } else if (pcmk_is_set(options, xml_log_option_children)) { options 1529 lib/common/xml.c options|xml_log_option_open|xml_log_option_close); options 1533 lib/common/xml.c if (pcmk_is_set(options, xml_log_option_close)) { options 1536 lib/common/xml.c insert_prefix(options, &buffer, &offset, &max, depth); options 1547 lib/common/xml.c const char *prefix, xmlNode *data, int depth, int options) options 1565 lib/common/xml.c options|xml_log_option_open|xml_log_option_close options 1575 lib/common/xml.c insert_prefix(options, &spaces, &s_count, &s_max, depth); options 1589 lib/common/xml.c options|xml_log_option_open); options 1627 lib/common/xml.c depth + 1, options); options 1631 lib/common/xml.c options|xml_log_option_close); options 1637 lib/common/xml.c depth + 1, options); options 1647 lib/common/xml.c const char *prefix, xmlNode * data, int depth, int options) options 1668 lib/common/xml.c if (pcmk_is_set(options, xml_log_option_dirty_add)) { options 1670 lib/common/xml.c options); options 1674 lib/common/xml.c if (pcmk_is_set(options, xml_log_option_formatted)) { options 1675 lib/common/xml.c if (pcmk_is_set(options, xml_log_option_diff_plus) options 1677 lib/common/xml.c options |= xml_log_option_diff_all; options 1682 lib/common/xml.c } else if (pcmk_is_set(options, xml_log_option_diff_minus) options 1684 lib/common/xml.c options |= xml_log_option_diff_all; options 1691 lib/common/xml.c if (pcmk_is_set(options, xml_log_option_diff_short) options 1692 lib/common/xml.c && !pcmk_is_set(options, xml_log_option_diff_all)) { options 1696 lib/common/xml.c log_data_element(log_level, file, function, line, prefix, a_child, depth + 1, options); options 1700 lib/common/xml.c options|xml_log_option_open|xml_log_option_close options 1707 lib/common/xml.c dump_filtered_xml(xmlNode * data, int options, char **buffer, int *offset, int *max) options 1711 lib/common/xml.c dump_xml_attr(a, options, buffer, offset, max); options 1717 lib/common/xml.c dump_xml_element(xmlNode * data, int options, char **buffer, int *offset, int *max, int depth) options 1738 lib/common/xml.c insert_prefix(options, buffer, offset, max, depth); options 1741 lib/common/xml.c if (options & xml_log_option_filtered) { options 1742 lib/common/xml.c dump_filtered_xml(data, options, buffer, offset, max); options 1746 lib/common/xml.c dump_xml_attr(a, options, buffer, offset, max); options 1757 lib/common/xml.c if (options & xml_log_option_formatted) { options 1764 lib/common/xml.c pcmk__xml2text(xChild, options, buffer, offset, max, depth + 1); options 1767 lib/common/xml.c insert_prefix(options, buffer, offset, max, depth); options 1770 lib/common/xml.c if (options & xml_log_option_formatted) { options 1777 lib/common/xml.c dump_xml_text(xmlNode * data, int options, char **buffer, int *offset, int *max, int depth) options 1793 lib/common/xml.c insert_prefix(options, buffer, offset, max, depth); options 1797 lib/common/xml.c if (options & xml_log_option_formatted) { options 1803 lib/common/xml.c dump_xml_cdata(xmlNode * data, int options, char **buffer, int *offset, int *max, int depth) options 1819 lib/common/xml.c insert_prefix(options, buffer, offset, max, depth); options 1825 lib/common/xml.c if (options & xml_log_option_formatted) { options 1831 lib/common/xml.c dump_xml_comment(xmlNode * data, int options, char **buffer, int *offset, int *max, int depth) options 1847 lib/common/xml.c insert_prefix(options, buffer, offset, max, depth); options 1853 lib/common/xml.c if (options & xml_log_option_formatted) { options 1872 lib/common/xml.c pcmk__xml2text(xmlNode *data, int options, char **buffer, int *offset, options 1881 lib/common/xml.c if (!pcmk_is_set(options, xml_log_option_filtered) options 1882 lib/common/xml.c && pcmk_is_set(options, xml_log_option_full_fledged)) { options 1914 lib/common/xml.c (options & xml_log_option_formatted), NULL); options 1938 lib/common/xml.c dump_xml_element(data, options, buffer, offset, max, depth); options 1942 lib/common/xml.c if (options & xml_log_option_text) { options 1943 lib/common/xml.c dump_xml_text(data, options, buffer, offset, max, depth); options 1947 lib/common/xml.c dump_xml_comment(data, options, buffer, offset, max, depth); options 1950 lib/common/xml.c dump_xml_cdata(data, options, buffer, offset, max, depth); options 360 lib/fencing/st_client.c stonith_api_remove_level_full(stonith_t *st, int options, options 384 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_LEVEL_DEL, data, NULL, options, 0); options 391 lib/fencing/st_client.c stonith_api_remove_level(stonith_t * st, int options, const char *node, int level) options 393 lib/fencing/st_client.c return stonith_api_remove_level_full(st, options, node, options 454 lib/fencing/st_client.c stonith_api_register_level_full(stonith_t * st, int options, const char *node, options 464 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_LEVEL_ADD, data, NULL, options, 0); options 471 lib/fencing/st_client.c stonith_api_register_level(stonith_t * st, int options, const char *node, int level, options 474 lib/fencing/st_client.c return stonith_api_register_level_full(st, options, node, NULL, NULL, NULL, options 1282 lib/fencing/st_client.c stonith_api_add_callback(stonith_t * stonith, int call_id, int timeout, int options, options 1297 lib/fencing/st_client.c if (!(options & st_opt_report_only_success)) { options 1313 lib/fencing/st_client.c blob->only_success = (options & st_opt_report_only_success) ? TRUE : FALSE; options 1316 lib/fencing/st_client.c blob->allow_timeout_updates = (options & st_opt_timeout_updates) ? TRUE : FALSE; options 518 lib/lrmd/lrmd_client.c enum lrmd_call_options options) options 530 lib/lrmd/lrmd_client.c crm_xml_add_int(op_msg, F_LRMD_CALLOPTS, options); options 537 lib/lrmd/lrmd_client.c op, (long)options, options); options 849 lib/lrmd/lrmd_client.c enum lrmd_call_options options, gboolean expect_reply) options 869 lib/lrmd/lrmd_client.c op_msg = lrmd_create_op(native->token, op, data, timeout, options); options 1681 lib/lrmd/lrmd_client.c const char *provider, const char *type, enum lrmd_call_options options) options 1701 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_RSC_REG, data, NULL, 0, options, TRUE); options 1708 lib/lrmd/lrmd_client.c lrmd_api_unregister_rsc(lrmd_t * lrmd, const char *rsc_id, enum lrmd_call_options options) options 1715 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_RSC_UNREG, data, NULL, 0, options, TRUE); options 1756 lib/lrmd/lrmd_client.c lrmd_api_get_rsc_info(lrmd_t * lrmd, const char *rsc_id, enum lrmd_call_options options) options 1767 lib/lrmd/lrmd_client.c lrmd_send_command(lrmd, LRMD_OP_RSC_INFO, data, &output, 0, options, TRUE); options 1806 lib/lrmd/lrmd_client.c enum lrmd_call_options options, GList **output) options 1824 lib/lrmd/lrmd_client.c timeout_ms, options, TRUE); options 1928 lib/lrmd/lrmd_client.c enum lrmd_call_options options) options 1931 lib/lrmd/lrmd_client.c output, options, NULL); options 1937 lib/lrmd/lrmd_client.c char **output, enum lrmd_call_options options, options 1996 lib/lrmd/lrmd_client.c enum lrmd_call_options options, lrmd_key_value_t * params) options 2015 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_RSC_EXEC, data, NULL, timeout, options, TRUE); options 248 lib/pengine/bundle.c if(mount->options) { options 249 lib/pengine/bundle.c offset += snprintf(buffer+offset, max-offset, ":%s", mount->options); options 414 lib/pengine/bundle.c if(mount->options) { options 415 lib/pengine/bundle.c offset += snprintf(buffer+offset, max-offset, ":%s", mount->options); options 573 lib/pengine/bundle.c if(mount->options) { options 574 lib/pengine/bundle.c offset += snprintf(buffer+offset, max-offset, ",%s", mount->options); options 581 lib/pengine/bundle.c if(mount->options) { options 582 lib/pengine/bundle.c offset += snprintf(buffer+offset, max-offset, ",%s", mount->options); options 886 lib/pengine/bundle.c const char *target, const char *options, uint32_t flags) options 893 lib/pengine/bundle.c pcmk__str_update(&mount->options, options); options 903 lib/pengine/bundle.c free(mount->options); options 1114 lib/pengine/bundle.c const char *options = crm_element_value(xml_child, "options"); options 1124 lib/pengine/bundle.c mount_add(bundle_data, source, target, options, flags); options 1422 lib/pengine/bundle.c print_rsc_in_list(pe_resource_t *rsc, const char *pre_text, long options, options 1426 lib/pengine/bundle.c if (options & pe_print_html) { options 1429 lib/pengine/bundle.c rsc->fns->print(rsc, pre_text, options, print_data); options 1430 lib/pengine/bundle.c if (options & pe_print_html) { options 1450 lib/pengine/bundle.c bundle_print_xml(pe_resource_t *rsc, const char *pre_text, long options, options 1479 lib/pengine/bundle.c print_rsc_in_list(replica->ip, child_text, options, print_data); options 1480 lib/pengine/bundle.c print_rsc_in_list(replica->child, child_text, options, print_data); options 1481 lib/pengine/bundle.c print_rsc_in_list(replica->container, child_text, options, print_data); options 1482 lib/pengine/bundle.c print_rsc_in_list(replica->remote, child_text, options, print_data); options 1843 lib/pengine/bundle.c long options, void *print_data) options 1868 lib/pengine/bundle.c common_print(rsc, pre_text, buffer, node, options, print_data); options 1872 lib/pengine/bundle.c pe__print_bundle(pe_resource_t *rsc, const char *pre_text, long options, options 1879 lib/pengine/bundle.c if (options & pe_print_xml) { options 1880 lib/pengine/bundle.c bundle_print_xml(rsc, pre_text, options, print_data); options 1895 lib/pengine/bundle.c if (options & pe_print_html) { options 1905 lib/pengine/bundle.c if (options & pe_print_html) { options 1909 lib/pengine/bundle.c if (pcmk_is_set(options, pe_print_implicit)) { options 1914 lib/pengine/bundle.c if (options & pe_print_html) { options 1917 lib/pengine/bundle.c print_rsc_in_list(replica->ip, child_text, options, print_data); options 1918 lib/pengine/bundle.c print_rsc_in_list(replica->container, child_text, options, print_data); options 1919 lib/pengine/bundle.c print_rsc_in_list(replica->remote, child_text, options, print_data); options 1920 lib/pengine/bundle.c print_rsc_in_list(replica->child, child_text, options, print_data); options 1921 lib/pengine/bundle.c if (options & pe_print_html) { options 1926 lib/pengine/bundle.c print_bundle_replica(replica, child_text, options, print_data); options 1930 lib/pengine/bundle.c if (options & pe_print_html) { options 1934 lib/pengine/bundle.c if (options & pe_print_html) { options 369 lib/pengine/clone.c short_print(char *list, const char *prefix, const char *type, const char *suffix, long options, void *print_data) options 376 lib/pengine/clone.c if (options & pe_print_html) { options 381 lib/pengine/clone.c if (options & pe_print_html) { options 384 lib/pengine/clone.c } else if (options & pe_print_suppres_nl) { options 386 lib/pengine/clone.c } else if ((options & pe_print_printf) || (options & pe_print_ncurses)) { options 418 lib/pengine/clone.c clone_print_xml(pe_resource_t * rsc, const char *pre_text, long options, void *print_data) options 441 lib/pengine/clone.c child_rsc->fns->print(child_rsc, child_text, options, print_data); options 479 lib/pengine/clone.c clone_print(pe_resource_t * rsc, const char *pre_text, long options, void *print_data) options 498 lib/pengine/clone.c if (options & pe_print_xml) { options 499 lib/pengine/clone.c clone_print_xml(rsc, pre_text, options, print_data); options 513 lib/pengine/clone.c if (options & pe_print_html) { options 516 lib/pengine/clone.c } else if ((options & pe_print_log) == 0) { options 525 lib/pengine/clone.c if (options & pe_print_clone_details) { options 537 lib/pengine/clone.c } else if (pcmk_is_set(options, pe_print_pending) options 546 lib/pengine/clone.c && !pcmk_is_set(options, pe_print_clone_active)) { options 588 lib/pengine/clone.c if (options & pe_print_html) { options 591 lib/pengine/clone.c child_rsc->fns->print(child_rsc, child_text, options, print_data); options 592 lib/pengine/clone.c if (options & pe_print_html) { options 607 lib/pengine/clone.c short_print(list_text, child_text, PROMOTED_INSTANCES, NULL, options, options 628 lib/pengine/clone.c UNPROMOTED_INSTANCES " (target-role)", NULL, options, options 632 lib/pengine/clone.c options, print_data); options 636 lib/pengine/clone.c short_print(list_text, child_text, "Started", NULL, options, print_data); options 644 lib/pengine/clone.c if (!pcmk_is_set(options, pe_print_clone_active)) { options 682 lib/pengine/clone.c short_print(stopped_list, child_text, state, NULL, options, print_data); options 686 lib/pengine/clone.c if (options & pe_print_html) { options 299 lib/pengine/common.c verify_pe_options(GHashTable * options) options 301 lib/pengine/common.c pcmk__validate_cluster_options(options, pe_opts, PCMK__NELEM(pe_opts)); options 305 lib/pengine/common.c pe_pref(GHashTable * options, const char *name) options 307 lib/pengine/common.c return pcmk__cluster_option(options, pe_opts, PCMK__NELEM(pe_opts), name); options 191 lib/pengine/group.c group_print_xml(pe_resource_t * rsc, const char *pre_text, long options, void *print_data) options 203 lib/pengine/group.c child_rsc->fns->print(child_rsc, child_text, options, print_data); options 211 lib/pengine/group.c group_print(pe_resource_t * rsc, const char *pre_text, long options, void *print_data) options 220 lib/pengine/group.c if (options & pe_print_xml) { options 221 lib/pengine/group.c group_print_xml(rsc, pre_text, options, print_data); options 229 lib/pengine/group.c if (options & pe_print_html) { options 232 lib/pengine/group.c } else if ((options & pe_print_log) == 0) { options 236 lib/pengine/group.c if (options & pe_print_brief) { options 237 lib/pengine/group.c print_rscs_brief(rsc->children, child_text, options, print_data, TRUE); options 243 lib/pengine/group.c if (options & pe_print_html) { options 246 lib/pengine/group.c child_rsc->fns->print(child_rsc, child_text, options, print_data); options 247 lib/pengine/group.c if (options & pe_print_html) { options 253 lib/pengine/group.c if (options & pe_print_html) { options 368 lib/pengine/native.c long options; options 450 lib/pengine/native.c native_print_xml(pe_resource_t * rsc, const char *pre_text, long options, void *print_data) options 454 lib/pengine/native.c const char *rsc_state = native_displayable_state(rsc, pcmk_is_set(options, pe_print_pending)); options 481 lib/pengine/native.c if (options & pe_print_pending) { options 490 lib/pengine/native.c if (options & pe_print_rsconly) { options 773 lib/pengine/native.c common_print(pe_resource_t * rsc, const char *pre_text, const char *name, pe_node_t *node, long options, void *print_data) options 784 lib/pengine/native.c && !pcmk_is_set(options, pe_print_implicit)) { options 792 lib/pengine/native.c if (options & pe_print_xml) { options 793 lib/pengine/native.c native_print_xml(rsc, pre_text, options, print_data); options 797 lib/pengine/native.c if ((pre_text == NULL) && (options & pe_print_printf)) { options 801 lib/pengine/native.c if (options & pe_print_html) { options 823 lib/pengine/native.c gchar *resource_s = pcmk__native_output_string(rsc, name, node, options, options 829 lib/pengine/native.c if (pcmk_is_set(options, pe_print_html)) { options 833 lib/pengine/native.c if (!pcmk_is_set(options, pe_print_rsconly) options 839 lib/pengine/native.c if (options & pe_print_html) { options 841 lib/pengine/native.c } else if ((options & pe_print_printf) options 842 lib/pengine/native.c || (options & pe_print_ncurses)) { options 851 lib/pengine/native.c if (options & pe_print_html) { options 854 lib/pengine/native.c } else if ((options & pe_print_printf) options 855 lib/pengine/native.c || (options & pe_print_ncurses)) { options 858 lib/pengine/native.c } else if ((options & pe_print_log)) { options 864 lib/pengine/native.c if (options & pe_print_html) { options 870 lib/pengine/native.c if (options & pe_print_html) { options 872 lib/pengine/native.c } else if ((options & pe_print_printf) options 873 lib/pengine/native.c || (options & pe_print_ncurses)) { options 878 lib/pengine/native.c if (options & pe_print_html) { options 880 lib/pengine/native.c } else if (options & pe_print_suppres_nl) { options 882 lib/pengine/native.c } else if ((options & pe_print_printf) || (options & pe_print_ncurses)) { options 888 lib/pengine/native.c native_print(pe_resource_t * rsc, const char *pre_text, long options, void *print_data) options 893 lib/pengine/native.c if (options & pe_print_xml) { options 894 lib/pengine/native.c native_print_xml(rsc, pre_text, options, print_data); options 905 lib/pengine/native.c common_print(rsc, pre_text, rsc_printable_id(rsc), node, options, print_data); options 1190 lib/pengine/native.c print_rscs_brief(GList *rsc_list, const char *pre_text, long options, options 1219 lib/pengine/native.c if (options & pe_print_rsconly) { options 1223 lib/pengine/native.c if (options & pe_print_html) { options 1238 lib/pengine/native.c if (options & pe_print_html) { options 1244 lib/pengine/native.c if (options & pe_print_html) { options 1252 lib/pengine/native.c if (options & pe_print_html) { options 18 lib/pengine/pe_status_private.h if(options & pe_print_html) { \ options 21 lib/pengine/pe_status_private.h } else if(options & pe_print_printf || options & pe_print_ncurses) { \ options 24 lib/pengine/pe_status_private.h } else if(options & pe_print_xml) { \ options 27 lib/pengine/pe_status_private.h } else if(options & pe_print_log) { \ options 64 lib/pengine/variant.h char *options; options 174 libltdl/loaders/dyld.c unsigned long options) = 0; options 177 libltdl/loaders/dyld.c unsigned long options) = 0; options 445 maint/gnulib/lib/argp-help.c const struct argp_option *opts = argp->options; options 295 maint/gnulib/lib/argp-parse.c const struct argp_option *real = argp->options; options 434 maint/gnulib/lib/argp-parse.c const struct argp_option *opt = argp->options; options 220 maint/gnulib/lib/argp.h const struct argp_option *options; options 78 maint/gnulib/lib/exclude.c int options; options 105 maint/gnulib/lib/exclude.c int options; /* common options for this segment */ options 143 maint/gnulib/lib/exclude.c fnmatch_pattern_has_wildcards (const char *str, int options) options 154 maint/gnulib/lib/exclude.c if (options & EXCLUDE_REGEX) options 159 maint/gnulib/lib/exclude.c if (options & EXCLUDE_REGEX) options 162 maint/gnulib/lib/exclude.c str += ! (options & FNM_NOESCAPE) && *str; options 166 maint/gnulib/lib/exclude.c if (options & FNM_EXTMATCH && *str == '(') options 255 maint/gnulib/lib/exclude.c new_exclude_segment (struct exclude *ex, enum exclude_type type, int options) options 259 maint/gnulib/lib/exclude.c sp->options = options; options 267 maint/gnulib/lib/exclude.c (options & FNM_CASEFOLD) ? options 270 maint/gnulib/lib/exclude.c (options & FNM_CASEFOLD) ? options 289 maint/gnulib/lib/exclude.c if (seg->v.pat.exclude[i].options & EXCLUDE_REGEX) options 331 maint/gnulib/lib/exclude.c fnmatch_no_wildcards (char const *pattern, char const *f, int options) options 333 maint/gnulib/lib/exclude.c if (! (options & FNM_LEADING_DIR)) options 334 maint/gnulib/lib/exclude.c return ((options & FNM_CASEFOLD) options 337 maint/gnulib/lib/exclude.c else if (! (options & FNM_CASEFOLD)) options 376 maint/gnulib/lib/exclude.c exclude_fnmatch (char const *pattern, char const *f, int options) options 379 maint/gnulib/lib/exclude.c (options & EXCLUDE_WILDCARDS options 382 maint/gnulib/lib/exclude.c bool matched = ((*matcher) (pattern, f, options) == 0); options 385 maint/gnulib/lib/exclude.c if (! (options & EXCLUDE_ANCHORED)) options 388 maint/gnulib/lib/exclude.c matched = ((*matcher) (pattern, p + 1, options) == 0); options 396 maint/gnulib/lib/exclude.c int options = opts->options; options 398 maint/gnulib/lib/exclude.c return (options & EXCLUDE_REGEX) options 400 maint/gnulib/lib/exclude.c : exclude_fnmatch (opts->v.pattern, f, options); options 426 maint/gnulib/lib/exclude.c int options = seg->options; options 438 maint/gnulib/lib/exclude.c if (options & FNM_LEADING_DIR) options 450 maint/gnulib/lib/exclude.c if (!(options & EXCLUDE_ANCHORED)) options 509 maint/gnulib/lib/exclude.c return invert ^ ! (seg->options & EXCLUDE_INCLUDE); options 515 maint/gnulib/lib/exclude.c add_exclude (struct exclude *ex, char const *pattern, int options) options 521 maint/gnulib/lib/exclude.c if ((options & (EXCLUDE_REGEX|EXCLUDE_WILDCARDS)) options 522 maint/gnulib/lib/exclude.c && fnmatch_pattern_has_wildcards (pattern, options)) options 525 maint/gnulib/lib/exclude.c && ((ex->head->options & EXCLUDE_INCLUDE) options 526 maint/gnulib/lib/exclude.c == (options & EXCLUDE_INCLUDE)))) options 527 maint/gnulib/lib/exclude.c new_exclude_segment (ex, exclude_pattern, options); options 537 maint/gnulib/lib/exclude.c patopts->options = options; options 538 maint/gnulib/lib/exclude.c if (options & EXCLUDE_REGEX) options 542 maint/gnulib/lib/exclude.c ((options & FNM_CASEFOLD) ? REG_ICASE : 0); options 544 maint/gnulib/lib/exclude.c if (options & FNM_LEADING_DIR) options 574 maint/gnulib/lib/exclude.c if (options & EXCLUDE_ALLOC) options 588 maint/gnulib/lib/exclude.c && ((ex->head->options & exclude_hash_flags) options 589 maint/gnulib/lib/exclude.c == (options & exclude_hash_flags)))) options 590 maint/gnulib/lib/exclude.c new_exclude_segment (ex, exclude_hash, options); options 594 maint/gnulib/lib/exclude.c if ((options & (EXCLUDE_WILDCARDS | FNM_NOESCAPE)) == EXCLUDE_WILDCARDS) options 609 maint/gnulib/lib/exclude.c struct exclude *ex, FILE *fp, int options, options 655 maint/gnulib/lib/exclude.c (*add_func) (ex, pattern, options, data); options 666 maint/gnulib/lib/exclude.c call_addfn (struct exclude *ex, char const *pattern, int options, void *data) options 669 maint/gnulib/lib/exclude.c (*addfnptr) (ex, pattern, options); options 674 maint/gnulib/lib/exclude.c struct exclude *ex, char const *file_name, int options, options 678 maint/gnulib/lib/exclude.c return add_exclude_fp (call_addfn, ex, stdin, options, line_end, &add_func); options 683 maint/gnulib/lib/exclude.c int rc = add_exclude_fp (call_addfn, ex, in, options, line_end, &add_func); options 360 maint/gnulib/lib/fts.c register int options, options 371 maint/gnulib/lib/fts.c if (options & ~FTS_OPTIONMASK) { options 375 maint/gnulib/lib/fts.c if ((options & FTS_NOCHDIR) && (options & FTS_CWDFD)) { options 379 maint/gnulib/lib/fts.c if ( ! (options & (FTS_LOGICAL | FTS_PHYSICAL))) { options 389 maint/gnulib/lib/fts.c sp->fts_options = options; options 469 maint/gnulib/lib/fts.c if ( ! (options & FTS_VERBATIM)) options 28 maint/gnulib/lib/getopt1.c getopt_long (int argc, char *__getopt_argv_const *argv, const char *options, options 31 maint/gnulib/lib/getopt1.c return _getopt_internal (argc, (char **) argv, options, long_options, options 36 maint/gnulib/lib/getopt1.c _getopt_long_r (int argc, char **argv, const char *options, options 40 maint/gnulib/lib/getopt1.c return _getopt_internal_r (argc, argv, options, long_options, opt_index, options 51 maint/gnulib/lib/getopt1.c const char *options, options 54 maint/gnulib/lib/getopt1.c return _getopt_internal (argc, (char **) argv, options, long_options, options 59 maint/gnulib/lib/getopt1.c _getopt_long_only_r (int argc, char **argv, const char *options, options 63 maint/gnulib/lib/getopt1.c return _getopt_internal_r (argc, argv, options, long_options, opt_index, options 412 maint/gnulib/lib/human.c humblock (char const *spec, uintmax_t *block_size, int *options) options 441 maint/gnulib/lib/human.c *options = 0; options 457 maint/gnulib/lib/human.c *options = opts; options 88 maint/gnulib/lib/mkdir-p.c void *options, options 105 maint/gnulib/lib/mkdir-p.c prefix_len = mkancesdirs (dir, wd, make_ancestor, options); options 136 maint/gnulib/lib/mkdir-p.c announce (dir, options); options 29 maint/gnulib/lib/mkdir-p.h void *options, options 1002 maint/gnulib/lib/mountlist.c char *options, *ignore; options 1029 maint/gnulib/lib/mountlist.c options = thisent + vmp->vmt_data[VMT_ARGS].vmt_off; options 1030 maint/gnulib/lib/mountlist.c ignore = strstr (options, "ignore"); options 1032 maint/gnulib/lib/mountlist.c && (ignore == options || ignore[-1] == ',') options 871 maint/gnulib/lib/quotearg.c struct quoting_options const *options) options 898 maint/gnulib/lib/quotearg.c int flags = options->flags | QA_ELIDE_NULL_BYTES; options 900 maint/gnulib/lib/quotearg.c options->style, flags, options 901 maint/gnulib/lib/quotearg.c options->quote_these_too, options 902 maint/gnulib/lib/quotearg.c options->left_quote, options 903 maint/gnulib/lib/quotearg.c options->right_quote); options 911 maint/gnulib/lib/quotearg.c quotearg_buffer_restyled (val, size, arg, argsize, options->style, options 912 maint/gnulib/lib/quotearg.c flags, options->quote_these_too, options 913 maint/gnulib/lib/quotearg.c options->left_quote, options 914 maint/gnulib/lib/quotearg.c options->right_quote); options 976 maint/gnulib/lib/quotearg.c struct quoting_options options; options 977 maint/gnulib/lib/quotearg.c options = default_quoting_options; options 978 maint/gnulib/lib/quotearg.c set_char_quoting (&options, ch, 1); options 979 maint/gnulib/lib/quotearg.c return quotearg_n_options (0, arg, argsize, &options); options 1003 maint/gnulib/lib/quotearg.c struct quoting_options options; options 1004 maint/gnulib/lib/quotearg.c options = quoting_options_from_style (s); options 1005 maint/gnulib/lib/quotearg.c set_char_quoting (&options, ':', 1); options 1006 maint/gnulib/lib/quotearg.c return quotearg_n_options (n, arg, SIZE_MAX, &options); options 68 maint/gnulib/lib/readutmp.c desirable_utmp_entry (STRUCT_UTMP const *u, int options) options 71 maint/gnulib/lib/readutmp.c if ((options & READ_UTMP_USER_PROCESS) && !user_proc) options 73 maint/gnulib/lib/readutmp.c if ((options & READ_UTMP_CHECK_PIDS) options 92 maint/gnulib/lib/readutmp.c int options) options 108 maint/gnulib/lib/readutmp.c if (desirable_utmp_entry (u, options)) options 128 maint/gnulib/lib/readutmp.c int options) options 145 maint/gnulib/lib/readutmp.c n_read += desirable_utmp_entry (&utmp[n_read], options); options 221 maint/gnulib/lib/readutmp.h int options); options 101 maint/gnulib/lib/regex-quote.c regex_quote_spec_pcre (int options, bool anchored) options 109 maint/gnulib/lib/regex-quote.c if (options & PCRE_EXTENDED) options 125 maint/gnulib/lib/regex-quote.c result.anchored = (options & PCRE_ANCHORED ? 0 : anchored); options 70 maint/gnulib/lib/regex-quote.h regex_quote_spec_pcre (int options, bool anchored); options 99 maint/gnulib/lib/savewd.c savewd_chdir (struct savewd *wd, char const *dir, int options, options 108 maint/gnulib/lib/savewd.c || (options & (HAVE_WORKING_O_NOFOLLOW ? SAVEWD_CHDIR_NOFOLLOW : 0))) options 112 maint/gnulib/lib/savewd.c | (options & SAVEWD_CHDIR_NOFOLLOW ? O_NOFOLLOW : 0))); options 124 maint/gnulib/lib/savewd.c if (result == 0 && ! (0 <= fd && options & SAVEWD_CHDIR_SKIP_READABLE)) options 269 maint/gnulib/lib/savewd.c void *options) options 285 maint/gnulib/lib/savewd.c int s = act (file[i], &wd, options); options 302 maint/gnulib/lib/savewd.c int s = act (file[i], &wd, options); options 111 maint/gnulib/lib/savewd.h int savewd_chdir (struct savewd *wd, char const *dir, int options, options 149 maint/gnulib/lib/savewd.h void *options); options 60 maint/gnulib/lib/se-label.in.h _GL_ATTRIBUTE_MAYBE_UNUSED struct selinux_opt *options, options 115 maint/gnulib/lib/sys_wait.in.h _GL_FUNCDECL_SYS (waitpid, pid_t, (pid_t pid, int *statusp, int options)); options 119 maint/gnulib/lib/sys_wait.in.h _GL_CXXALIAS_SYS_CAST (waitpid, pid_t, (pid_t pid, int *statusp, int options)); options 126 maint/gnulib/lib/utimecmp.c int options) options 128 maint/gnulib/lib/utimecmp.c return utimecmpat (AT_FDCWD, dst_name, dst_stat, src_stat, options); options 135 maint/gnulib/lib/utimecmp.c int options) options 158 maint/gnulib/lib/utimecmp.c if (options & UTIMECMP_TRUNCATE_SOURCE) options 27 maint/gnulib/lib/waitpid.c waitpid (pid_t pid, int *statusp, int options) options 25 maint/gnulib/tests/test-fnmatch-h.c int options[] = { FNM_PATHNAME, FNM_PERIOD, FNM_NOESCAPE }; options 34 maint/gnulib/tests/test-getopt.h const char *options, options 43 maint/gnulib/tests/test-getopt.h while ((c = getopt (argc, (char **) argv, options)) != -1) options 61 maint/gnulib/tests/test-getopt.h ASSERT (options[0] == '-'); options 66 maint/gnulib/tests/test-getopt.h ASSERT (options[0] == ':' options 67 maint/gnulib/tests/test-getopt.h || ((options[0] == '-' || options[0] == '+') options 68 maint/gnulib/tests/test-getopt.h && options[1] == ':')); options 47 maint/gnulib/tests/test-getopt_long.h const char *options, const struct option *long_options, options 57 maint/gnulib/tests/test-getopt_long.h while ((c = getopt_long (argc, (char **) argv, options, long_options, options 82 maint/gnulib/tests/test-getopt_long.h ASSERT (options[0] == '-'); options 87 maint/gnulib/tests/test-getopt_long.h ASSERT (options[0] == ':' options 88 maint/gnulib/tests/test-getopt_long.h || ((options[0] == '-' || options[0] == '+') options 89 maint/gnulib/tests/test-getopt_long.h && options[1] == ':')); options 52 tools/attrd_updater.c } options = { options 59 tools/attrd_updater.c pcmk__str_update(&options.attr_value, optarg); options 62 tools/attrd_updater.c options.command = 'B'; options 64 tools/attrd_updater.c options.command = 'D'; options 66 tools/attrd_updater.c options.command = 'Q'; options 68 tools/attrd_updater.c options.command = 'R'; options 70 tools/attrd_updater.c options.command = 'U'; options 72 tools/attrd_updater.c options.command = 'Y'; options 80 tools/attrd_updater.c pcmk__set_node_attr_flags(options.attr_options, pcmk__node_attr_private); options 87 tools/attrd_updater.c { "name", 'n', 0, G_OPTION_ARG_STRING, &options.attr_name, options 135 tools/attrd_updater.c { "delay", 'd', 0, G_OPTION_ARG_STRING, &options.attr_dampen, options 140 tools/attrd_updater.c { "set", 's', 0, G_OPTION_ARG_STRING, &options.attr_set, options 144 tools/attrd_updater.c { "node", 'N', 0, G_OPTION_ARG_STRING, &options.attr_node, options 148 tools/attrd_updater.c { "all", 'A', 0, G_OPTION_ARG_NONE, &options.query_all, options 152 tools/attrd_updater.c { "lifetime", 'l', 0, G_OPTION_ARG_STRING, &options.attr_section, options 169 tools/attrd_updater.c { "section", 'S', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_STRING, &options.attr_section, options 234 tools/attrd_updater.c if (options.command != 'R' && options.attr_name == NULL) { options 242 tools/attrd_updater.c if (options.command == 'Q') { options 243 tools/attrd_updater.c int rc = do_query(out, options.attr_name, options.attr_node, options.query_all); options 251 tools/attrd_updater.c const char *target = pcmk__node_attr_target(options.attr_node); options 253 tools/attrd_updater.c exit_code = pcmk_rc2exitc(do_update(options.command, options 254 tools/attrd_updater.c target == NULL ? options.attr_node : target, options 255 tools/attrd_updater.c options.attr_name, options.attr_value, options 256 tools/attrd_updater.c options.attr_section, options.attr_set, options 257 tools/attrd_updater.c options.attr_dampen, options.attr_options)); options 263 tools/attrd_updater.c g_free(options.attr_dampen); options 264 tools/attrd_updater.c g_free(options.attr_name); options 265 tools/attrd_updater.c g_free(options.attr_node); options 266 tools/attrd_updater.c g_free(options.attr_section); options 267 tools/attrd_updater.c g_free(options.attr_set); options 268 tools/attrd_updater.c free(options.attr_value); options 97 tools/crm_attribute.c } options = { options 106 tools/crm_attribute.c options.command = 'D'; options 108 tools/crm_attribute.c if (options.attr_value) { options 109 tools/crm_attribute.c free(options.attr_value); options 112 tools/crm_attribute.c options.attr_value = NULL; options 120 tools/crm_attribute.c options.promotion_score = TRUE; options 122 tools/crm_attribute.c if (options.attr_name) { options 123 tools/crm_attribute.c g_free(options.attr_name); options 128 tools/crm_attribute.c options.attr_name = g_strdup(score_name); options 131 tools/crm_attribute.c options.attr_name = NULL; options 139 tools/crm_attribute.c options.command = 'v'; options 140 tools/crm_attribute.c pcmk__str_update(&options.attr_value, optarg); options 146 tools/crm_attribute.c if (options.type) { options 147 tools/crm_attribute.c g_free(options.type); options 150 tools/crm_attribute.c options.type = g_strdup(XML_CIB_TAG_NODES); options 152 tools/crm_attribute.c if (options.set_type) { options 153 tools/crm_attribute.c free(options.set_type); options 156 tools/crm_attribute.c options.set_type = strdup(XML_TAG_UTILIZATION); options 162 tools/crm_attribute.c options.command = 'G'; options 164 tools/crm_attribute.c if (options.attr_value) { options 165 tools/crm_attribute.c free(options.attr_value); options 168 tools/crm_attribute.c options.attr_value = NULL; options 173 tools/crm_attribute.c { "id", 'i', 0, G_OPTION_ARG_STRING, &options.attr_id, options 179 tools/crm_attribute.c { "name", 'n', 0, G_OPTION_ARG_STRING, &options.attr_name, options 184 tools/crm_attribute.c { "pattern", 'P', 0, G_OPTION_ARG_STRING, &options.attr_pattern, options 198 tools/crm_attribute.c { "set-name", 's', 0, G_OPTION_ARG_STRING, &options.set_name, options 227 tools/crm_attribute.c { "default", 'd', 0, G_OPTION_ARG_STRING, &options.attr_default, options 232 tools/crm_attribute.c { "lifetime", 'l', 0, G_OPTION_ARG_STRING, &options.type, options 238 tools/crm_attribute.c { "node", 'N', 0, G_OPTION_ARG_STRING, &options.dest_uname, options 244 tools/crm_attribute.c { "type", 't', 0, G_OPTION_ARG_STRING, &options.type, options 255 tools/crm_attribute.c { "inhibit-policy-engine", '!', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &options.inhibit, options 263 tools/crm_attribute.c { "attr-id", 0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_STRING, &options.attr_id, options 267 tools/crm_attribute.c { "attr-name", 0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_STRING, &options.attr_name, options 283 tools/crm_attribute.c { "node-uname", 'U', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_STRING, &options.dest_uname, options 322 tools/crm_attribute.c pcmk__str_update(&options.dest_uname, reply->data.node_info.uname); options 330 tools/crm_attribute.c g_free(options.dest_uname); options 336 tools/crm_attribute.c options.dest_uname = g_strdup(hostname); options 473 tools/crm_attribute.c if (options.promotion_score && options.attr_name == NULL) { options 481 tools/crm_attribute.c if (options.inhibit) { options 498 tools/crm_attribute.c if (options.type == NULL) { options 499 tools/crm_attribute.c if (options.promotion_score) { options 501 tools/crm_attribute.c options.type = g_strdup(XML_CIB_TAG_STATUS); options 503 tools/crm_attribute.c } else if (options.dest_uname != NULL) { options 505 tools/crm_attribute.c options.type = g_strdup(XML_CIB_TAG_NODES); options 509 tools/crm_attribute.c options.type = g_strdup(XML_CIB_TAG_CRMCONFIG); options 511 tools/crm_attribute.c } else if (pcmk__str_eq(options.type, "reboot", pcmk__str_casei)) { options 512 tools/crm_attribute.c options.type = g_strdup(XML_CIB_TAG_STATUS); options 514 tools/crm_attribute.c } else if (pcmk__str_eq(options.type, "forever", pcmk__str_casei)) { options 515 tools/crm_attribute.c options.type = g_strdup(XML_CIB_TAG_NODES); options 519 tools/crm_attribute.c if (!pcmk__strcase_any_of(options.type, XML_CIB_TAG_CRMCONFIG, XML_CIB_TAG_TICKETS, options 525 tools/crm_attribute.c const char *target = pcmk__node_attr_target(options.dest_uname); options 528 tools/crm_attribute.c g_free(options.dest_uname); options 529 tools/crm_attribute.c options.dest_uname = g_strdup(target); options 530 tools/crm_attribute.c } else if (getenv("CIB_file") != NULL && options.dest_uname == NULL) { options 534 tools/crm_attribute.c if (options.dest_uname == NULL) { options 551 tools/crm_attribute.c rc = query_node_uuid(the_cib, options.dest_uname, &options.dest_node, &is_remote_node); options 557 tools/crm_attribute.c "Could not map name=%s to a UUID", options.dest_uname); options 562 tools/crm_attribute.c if ((options.command == 'D') && (options.attr_name == NULL) && (options.attr_pattern == NULL)) { options 569 tools/crm_attribute.c if (options.attr_pattern) { options 570 tools/crm_attribute.c if (((options.command != 'v') && (options.command != 'D')) options 571 tools/crm_attribute.c || !pcmk__str_eq(options.type, XML_CIB_TAG_STATUS, pcmk__str_casei)) { options 578 tools/crm_attribute.c options.command = 'u'; options 579 tools/crm_attribute.c g_free(options.attr_name); options 580 tools/crm_attribute.c options.attr_name = options.attr_pattern; options 584 tools/crm_attribute.c try_attrd = pcmk__str_eq(options.type, XML_CIB_TAG_STATUS, pcmk__str_casei); options 594 tools/crm_attribute.c if (((options.command == 'v') || (options.command == 'D') || (options.command == 'u')) && try_attrd options 595 tools/crm_attribute.c && (pcmk__node_attr_request(NULL, options.command, options.dest_uname, options.attr_name, options 596 tools/crm_attribute.c options.attr_value, options.type, options.set_name, NULL, NULL, options 599 tools/crm_attribute.c options.attr_name, ((options.command == 'D')? "<none>" : options.attr_value)); options 601 tools/crm_attribute.c } else if (options.command == 'D') { options 602 tools/crm_attribute.c rc = cib__delete_node_attr(out, the_cib, cib_opts, options.type, options.dest_node, options 603 tools/crm_attribute.c options.set_type, options.set_name, options.attr_id, options 604 tools/crm_attribute.c options.attr_name, options.attr_value, NULL); options 614 tools/crm_attribute.c } else if (options.command == 'v') { options 615 tools/crm_attribute.c CRM_LOG_ASSERT(options.type != NULL); options 616 tools/crm_attribute.c CRM_LOG_ASSERT(options.attr_name != NULL); options 617 tools/crm_attribute.c CRM_LOG_ASSERT(options.attr_value != NULL); options 619 tools/crm_attribute.c rc = cib__update_node_attr(out, the_cib, cib_opts, options.type, options.dest_node, options 620 tools/crm_attribute.c options.set_type, options.set_name, options.attr_id, options 621 tools/crm_attribute.c options.attr_name, options.attr_value, NULL, options 628 tools/crm_attribute.c if (options.attr_id == NULL && options.attr_name == NULL) { options 635 tools/crm_attribute.c rc = cib__read_node_attr(out, the_cib, options.type, options.dest_node, options 636 tools/crm_attribute.c options.set_type, options.set_name, options.attr_id, options 637 tools/crm_attribute.c options.attr_name, &read_value, NULL); options 639 tools/crm_attribute.c if (rc == ENXIO && options.attr_default) { options 640 tools/crm_attribute.c read_value = strdup(options.attr_default); options 645 tools/crm_attribute.c options.attr_name, crm_str(read_value), options.set_name ? "in " : "", options.set_name ? options.set_name : ""); options 651 tools/crm_attribute.c out->message(out, "attribute", options.type, options.attr_id, options 652 tools/crm_attribute.c options.attr_name, read_value); options 673 tools/crm_attribute.c free(options.attr_default); options 674 tools/crm_attribute.c g_free(options.attr_id); options 675 tools/crm_attribute.c g_free(options.attr_name); options 676 tools/crm_attribute.c free(options.attr_value); options 677 tools/crm_attribute.c free(options.dest_node); options 678 tools/crm_attribute.c g_free(options.dest_uname); options 679 tools/crm_attribute.c g_free(options.set_name); options 680 tools/crm_attribute.c free(options.set_type); options 681 tools/crm_attribute.c g_free(options.type); options 40 tools/crm_diff.c } options; options 47 tools/crm_diff.c { "original", 'o', 0, G_OPTION_ARG_STRING, &options.xml_file_1, options 58 tools/crm_diff.c { "new", 'n', 0, G_OPTION_ARG_STRING, &options.xml_file_2, options 72 tools/crm_diff.c { "cib", 'c', 0, G_OPTION_ARG_NONE, &options.as_cib, options 75 tools/crm_diff.c { "stdin", 's', 0, G_OPTION_ARG_NONE, &options.use_stdin, options 78 tools/crm_diff.c { "no-version", 'u', 0, G_OPTION_ARG_NONE, &options.no_version, options 87 tools/crm_diff.c options.raw_2 = TRUE; options 88 tools/crm_diff.c pcmk__str_update(&options.xml_file_2, optarg); options 94 tools/crm_diff.c options.raw_1 = TRUE; options 95 tools/crm_diff.c pcmk__str_update(&options.xml_file_1, optarg); options 101 tools/crm_diff.c options.apply = TRUE; options 102 tools/crm_diff.c pcmk__str_update(&options.xml_file_2, optarg); options 313 tools/crm_diff.c if (options.apply && options.no_version) { options 315 tools/crm_diff.c } else if (options.as_cib && options.no_version) { options 321 tools/crm_diff.c if (options.raw_1) { options 322 tools/crm_diff.c object_1 = string2xml(options.xml_file_1); options 324 tools/crm_diff.c } else if (options.use_stdin) { options 328 tools/crm_diff.c } else if (options.xml_file_1 != NULL) { options 329 tools/crm_diff.c object_1 = filename2xml(options.xml_file_1); options 332 tools/crm_diff.c if (options.raw_2) { options 333 tools/crm_diff.c object_2 = string2xml(options.xml_file_2); options 335 tools/crm_diff.c } else if (options.use_stdin) { options 339 tools/crm_diff.c } else if (options.xml_file_2 != NULL) { options 340 tools/crm_diff.c object_2 = filename2xml(options.xml_file_2); options 354 tools/crm_diff.c if (options.apply) { options 355 tools/crm_diff.c int ret = apply_patch(object_1, object_2, options.as_cib); options 358 tools/crm_diff.c int ret = generate_patch(object_1, object_2, options.xml_file_2, options.as_cib, options.no_version); options 365 tools/crm_diff.c free(options.xml_file_1); options 366 tools/crm_diff.c free(options.xml_file_2); options 24 tools/crm_error.c } options; options 27 tools/crm_error.c { "name", 'n', 0, G_OPTION_ARG_NONE, &options.with_name, options 31 tools/crm_error.c { "list", 'l', 0, G_OPTION_ARG_NONE, &options.do_list, options 34 tools/crm_error.c { "exit", 'X', 0, G_OPTION_ARG_NONE, &options.as_exit_code, options 37 tools/crm_error.c { "rc", 'r', 0, G_OPTION_ARG_NONE, &options.as_rc, options 47 tools/crm_error.c if (options.as_exit_code) { options 50 tools/crm_error.c } else if (options.as_rc) { options 99 tools/crm_error.c if (options.do_list) { options 103 tools/crm_error.c if (options.as_rc) { options 121 tools/crm_error.c } else if(options.with_name) { options 141 tools/crm_error.c if (options.with_name) { options 130 tools/crm_mon.c } options = { options 259 tools/crm_mon.c if (options.neg_location_prefix != NULL) { options 260 tools/crm_mon.c free(options.neg_location_prefix); options 261 tools/crm_mon.c options.neg_location_prefix = NULL; options 265 tools/crm_mon.c options.neg_location_prefix = strdup(*s+5); options 320 tools/crm_mon.c options.user_includes_excludes = g_slist_append(options.user_includes_excludes, s); options 328 tools/crm_mon.c options.includes_excludes = g_slist_append(options.includes_excludes, s); options 336 tools/crm_mon.c options.one_shot = TRUE; options 353 tools/crm_mon.c options.one_shot = TRUE; options 374 tools/crm_mon.c options.fence_connect = TRUE; options 379 tools/crm_mon.c options.fence_connect = TRUE; options 384 tools/crm_mon.c options.fence_connect = TRUE; options 389 tools/crm_mon.c options.fence_connect = FALSE; options 448 tools/crm_mon.c options.reconnect_ms = crm_parse_interval_spec(optarg); options 489 tools/crm_mon.c options.one_shot = TRUE; options 501 tools/crm_mon.c { "one-shot", '1', 0, G_OPTION_ARG_NONE, &options.one_shot, options 505 tools/crm_mon.c { "daemonize", 'd', 0, G_OPTION_ARG_NONE, &options.daemonize, options 510 tools/crm_mon.c { "pid-file", 'p', 0, G_OPTION_ARG_FILENAME, &options.pid_file, options 514 tools/crm_mon.c { "external-agent", 'E', 0, G_OPTION_ARG_FILENAME, &options.external_agent, options 518 tools/crm_mon.c { "external-recipient", 'e', 0, G_OPTION_ARG_STRING, &options.external_recipient, options 522 tools/crm_mon.c { "watch-fencing", 'W', 0, G_OPTION_ARG_NONE, &options.watch_fencing, options 544 tools/crm_mon.c { "node", 0, 0, G_OPTION_ARG_STRING, &options.only_node, options 549 tools/crm_mon.c { "resource", 0, 0, G_OPTION_ARG_STRING, &options.only_rsc, options 605 tools/crm_mon.c { "pending", 'j', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &options.print_pending, options 666 tools/crm_mon.c reconnect_timer = g_timeout_add(options.reconnect_ms, options 697 tools/crm_mon.c reconnect_timer = g_timeout_add(options.reconnect_ms, options 745 tools/crm_mon.c if (options.fence_connect && st == NULL) { options 749 tools/crm_mon.c if (!options.fence_connect || st == NULL || st->state != stonith_disconnected) { options 756 tools/crm_mon.c if (options.watch_fencing) { options 840 tools/crm_mon.c options.fence_connect = TRUE; options 846 tools/crm_mon.c options.fence_connect = TRUE; options 852 tools/crm_mon.c options.fence_connect = TRUE; options 859 tools/crm_mon.c options.fence_connect = FALSE; options 948 tools/crm_mon.c rc = pcmk_poll_ipc(pacemakerd_api, options.reconnect_ms/2); options 1288 tools/crm_mon.c } else if (options.one_shot) { options 1291 tools/crm_mon.c } else if (!options.daemonize && args->output_dest != NULL) { options 1292 tools/crm_mon.c options.one_shot = TRUE; options 1331 tools/crm_mon.c options.only_node, options.only_rsc, options 1332 tools/crm_mon.c options.neg_location_prefix, options 1364 tools/crm_mon.c options.pid_file = strdup("/tmp/ClusterMon.pid"); options 1372 tools/crm_mon.c options.one_shot = TRUE; options 1403 tools/crm_mon.c if (options.watch_fencing) { options 1405 tools/crm_mon.c options.fence_connect = TRUE; options 1429 tools/crm_mon.c options.one_shot = TRUE; options 1445 tools/crm_mon.c if (options.one_shot) { options 1450 tools/crm_mon.c } else if (options.daemonize) { options 1452 tools/crm_mon.c !options.external_agent) { options 1462 tools/crm_mon.c options.one_shot = TRUE; options 1491 tools/crm_mon.c if (options.daemonize) { options 1492 tools/crm_mon.c if (!options.external_agent && (output_format == mon_output_console || options 1504 tools/crm_mon.c pcmk__daemonize(crm_system_name, options.pid_file); options 1514 tools/crm_mon.c apply_include_exclude(options.includes_excludes, &error); options 1520 tools/crm_mon.c if (!apply_include_exclude(options.user_includes_excludes, &error)) { options 1552 tools/crm_mon.c } else if (options.external_agent != NULL) { options 1555 tools/crm_mon.c } else if (options.daemonize == TRUE) { options 1564 tools/crm_mon.c if (!options.daemonize) { options 1565 tools/crm_mon.c options.one_shot = TRUE; options 1572 tools/crm_mon.c pcmk__itoa(options.reconnect_ms / 1000), NULL); options 1584 tools/crm_mon.c if (options.one_shot) { options 1598 tools/crm_mon.c pcmk__sleep_ms(options.reconnect_ms); options 1662 tools/crm_mon.c crm_debug("Sending external notification to '%s' via '%s'", options.external_recipient, options.external_agent); options 1667 tools/crm_mon.c if (options.external_recipient) { options 1668 tools/crm_mon.c setenv("CRM_notify_recipient", options.external_recipient, 1); options 1683 tools/crm_mon.c execl(options.external_agent, options.external_agent, NULL); options 1687 tools/crm_mon.c crm_trace("Finished running custom notification program '%s'.", options.external_agent); options 1785 tools/crm_mon.c if (notify && options.external_agent) { options 1961 tools/crm_mon.c if (options.external_agent) { options 2010 tools/crm_mon.c show, show_opts, options.only_node, options 2011 tools/crm_mon.c options.only_rsc, options.neg_location_prefix, options 2038 tools/crm_mon.c } else if (options.external_agent) { options 2083 tools/crm_mon.c ((now - last_refresh) > (options.reconnect_ms / 1000)) || options 2141 tools/crm_mon.c free(options.neg_location_prefix); options 2142 tools/crm_mon.c free(options.only_node); options 2143 tools/crm_mon.c free(options.only_rsc); options 2144 tools/crm_mon.c free(options.pid_file); options 2145 tools/crm_mon.c g_slist_free_full(options.includes_excludes, free); options 2193 tools/crm_mon.c if (!options.daemonize) { options 36 tools/crm_node.c } options = { options 79 tools/crm_node.c { "force", 'f', 0, G_OPTION_ARG_NONE, &options.force_flag, options 84 tools/crm_node.c { "corosync", 'C', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &options.corosync, options 97 tools/crm_node.c options.command = 'i'; options 99 tools/crm_node.c options.command = 'l'; options 101 tools/crm_node.c options.command = 'n'; options 103 tools/crm_node.c options.command = 'p'; options 105 tools/crm_node.c options.command = 'q'; options 116 tools/crm_node.c options.command = 'N'; options 117 tools/crm_node.c pcmk__scan_min_int(optarg, &(options.nodeid), 0); options 129 tools/crm_node.c options.command = 'R'; options 130 tools/crm_node.c options.dangerous_cmd = TRUE; options 131 tools/crm_node.c pcmk__str_update(&options.target_uname, optarg); options 174 tools/crm_node.c switch (options.command) { options 237 tools/crm_node.c if (options.command == 'l') { options 246 tools/crm_node.c if (options.command == 'p') { options 555 tools/crm_node.c if (options.command == 0) { options 564 tools/crm_node.c if (options.dangerous_cmd && options.force_flag == FALSE) { options 572 tools/crm_node.c switch (options.command) { options 577 tools/crm_node.c remove_node(options.target_uname); options 582 tools/crm_node.c run_controller_mainloop(options.nodeid, false); options 115 tools/crm_resource.c } options = { options 127 tools/crm_resource.c if (options.rsc_cmd != cmd_none) { \ options 132 tools/crm_resource.c options.rsc_cmd = (cmd); \ options 136 tools/crm_resource.c if (options.rsc_cmd != cmd_none) { \ options 139 tools/crm_resource.c options.rsc_cmd = (cmd); \ options 490 tools/crm_resource.c { "lifetime", 'u', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, &options.move_lifetime, options 495 tools/crm_resource.c &options.promoted_role_only, options 503 tools/crm_resource.c &options.promoted_role_only, options 567 tools/crm_resource.c { "node", 'N', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, &options.host_uname, options 570 tools/crm_resource.c { "recursive", 0, G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE, &options.recursive, options 573 tools/crm_resource.c { "resource-type", 't', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, &options.rsc_type, options 576 tools/crm_resource.c { "parameter-value", 'v', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, &options.prop_value, options 587 tools/crm_resource.c { "operation", 'n', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, &options.operation, options 590 tools/crm_resource.c { "interval", 'I', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, &options.interval_spec, options 610 tools/crm_resource.c { "set-name", 's', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, &options.prop_set, options 613 tools/crm_resource.c { "nvpair", 'i', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, &options.prop_id, options 620 tools/crm_resource.c { "force", 'f', G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE, &options.force, options 624 tools/crm_resource.c { "xml-file", 'x', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_FILENAME, &options.xml_file, options 627 tools/crm_resource.c { "host-uname", 'H', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_STRING, &options.host_uname, options 636 tools/crm_resource.c options.require_crmd = FALSE; options 637 tools/crm_resource.c options.require_node = FALSE; options 639 tools/crm_resource.c options.require_cib = TRUE, options 640 tools/crm_resource.c options.require_dataset = TRUE, options 641 tools/crm_resource.c options.require_resource = TRUE, options 643 tools/crm_resource.c options.find_flags = 0; options 648 tools/crm_resource.c options.cmdline_config = TRUE; options 649 tools/crm_resource.c options.require_resource = FALSE; options 652 tools/crm_resource.c pcmk__str_update(&options.v_provider, optarg); options 654 tools/crm_resource.c pcmk__str_update(&options.v_agent, optarg); options 663 tools/crm_resource.c options.attr_set_type = XML_TAG_META_SETS; options 665 tools/crm_resource.c options.attr_set_type = XML_TAG_UTILIZATION; options 673 tools/crm_resource.c pcmk__str_update(&options.v_class, optarg); options 674 tools/crm_resource.c options.cmdline_config = TRUE; options 675 tools/crm_resource.c options.require_resource = FALSE; options 687 tools/crm_resource.c options.require_resource = FALSE; options 689 tools/crm_resource.c options.require_crmd = TRUE; options 691 tools/crm_resource.c options.find_flags = pe_find_renamed|pe_find_anon; options 698 tools/crm_resource.c options.require_dataset = FALSE; options 699 tools/crm_resource.c options.find_flags = pe_find_renamed|pe_find_any; options 705 tools/crm_resource.c options.clear_expired = TRUE; options 706 tools/crm_resource.c options.require_resource = FALSE; options 713 tools/crm_resource.c options.require_cib = FALSE; options 714 tools/crm_resource.c options.require_dataset = FALSE; options 715 tools/crm_resource.c options.require_resource = FALSE; options 716 tools/crm_resource.c pcmk__str_update(&options.agent_spec, optarg); options 742 tools/crm_resource.c options.require_cib = FALSE; options 743 tools/crm_resource.c options.require_dataset = FALSE; options 744 tools/crm_resource.c options.require_resource = FALSE; options 776 tools/crm_resource.c if (options.cmdline_params == NULL) { options 777 tools/crm_resource.c options.cmdline_params = pcmk__strkey_table(free, free); options 779 tools/crm_resource.c g_hash_table_replace(options.cmdline_params, name, value); options 786 tools/crm_resource.c options.require_crmd = TRUE; options 787 tools/crm_resource.c options.require_node = TRUE; options 795 tools/crm_resource.c options.find_flags = pe_find_renamed|pe_find_anon; options 798 tools/crm_resource.c options.find_flags = pe_find_renamed|pe_find_anon; options 801 tools/crm_resource.c options.find_flags = pe_find_renamed|pe_find_anon; options 804 tools/crm_resource.c options.find_flags = pe_find_renamed|pe_find_any; options 807 tools/crm_resource.c options.find_flags = pe_find_renamed|pe_find_any; options 810 tools/crm_resource.c options.find_flags = pe_find_renamed|pe_find_anon; options 813 tools/crm_resource.c options.find_flags = pe_find_renamed|pe_find_anon; options 816 tools/crm_resource.c options.find_flags = pe_find_renamed|pe_find_anon; options 830 tools/crm_resource.c pcmk__str_update(&options.prop_name, optarg); options 831 tools/crm_resource.c options.find_flags = pe_find_renamed|pe_find_any; options 849 tools/crm_resource.c options.require_resource = FALSE; options 861 tools/crm_resource.c pcmk__str_update(&options.prop_name, optarg); options 862 tools/crm_resource.c options.find_flags = pe_find_renamed|pe_find_any; options 869 tools/crm_resource.c options.require_dataset = FALSE; options 870 tools/crm_resource.c pcmk__str_update(&options.prop_name, optarg); options 871 tools/crm_resource.c options.find_flags = pe_find_renamed|pe_find_any; options 877 tools/crm_resource.c options.timeout_ms = crm_get_msec(optarg); options 886 tools/crm_resource.c if (options.operation) { options 887 tools/crm_resource.c g_free(options.operation); options 889 tools/crm_resource.c options.operation = g_strdup(option_name + 2); // skip "--" options 890 tools/crm_resource.c options.find_flags = pe_find_renamed|pe_find_anon; options 891 tools/crm_resource.c if (options.override_params == NULL) { options 892 tools/crm_resource.c options.override_params = pcmk__strkey_table(free, free); options 896 tools/crm_resource.c if (pcmk__scan_min_int(optarg, &options.check_level, 0) != pcmk_rc_ok) { options 911 tools/crm_resource.c options.find_flags = pe_find_renamed|pe_find_anon; options 920 tools/crm_resource.c options.find_flags = pe_find_renamed|pe_find_anon; options 921 tools/crm_resource.c if (options.override_params == NULL) { options 922 tools/crm_resource.c options.override_params = pcmk__strkey_table(free, free); options 924 tools/crm_resource.c options.require_node = TRUE; options 925 tools/crm_resource.c options.require_dataset = TRUE; options 932 tools/crm_resource.c options.require_resource = FALSE; options 933 tools/crm_resource.c options.require_dataset = FALSE; options 940 tools/crm_resource.c options.require_resource = FALSE; options 941 tools/crm_resource.c options.find_flags = pe_find_renamed|pe_find_anon; options 957 tools/crm_resource.c rc = cli_resource_ban(out, options.rsc_id, current->details->uname, move_lifetime, NULL, options 958 tools/crm_resource.c cib_conn, options.cib_options, options.promoted_role_only); options 976 tools/crm_resource.c rc = cli_resource_ban(out, options.rsc_id, current->details->uname, move_lifetime, NULL, options 977 tools/crm_resource.c cib_conn, options.cib_options, options.promoted_role_only); options 987 tools/crm_resource.c options.rsc_id, nactive, count, options.rsc_id, options.rsc_id); options 996 tools/crm_resource.c options.rsc_id, nactive, options.rsc_id); options 1007 tools/crm_resource.c if (options.force == FALSE) { options 1012 tools/crm_resource.c rsc->id, options.rsc_id, (options.host_uname? options.host_uname: "all nodes")); options 1013 tools/crm_resource.c rc = cli_resource_delete(controld_api, options.host_uname, rsc, options.operation, options 1014 tools/crm_resource.c options.interval_spec, TRUE, data_set, options.force); options 1040 tools/crm_resource.c if (options.clear_expired) { options 1041 tools/crm_resource.c rc = cli_resource_clear_all_expired(data_set->input, cib_conn, options.cib_options, options 1042 tools/crm_resource.c options.rsc_id, options.host_uname, options 1043 tools/crm_resource.c options.promoted_role_only); options 1045 tools/crm_resource.c } else if (options.host_uname) { options 1046 tools/crm_resource.c dest = pe_find_node(data_set->nodes, options.host_uname); options 1054 tools/crm_resource.c rc = cli_resource_clear(options.rsc_id, dest->details->uname, NULL, options 1055 tools/crm_resource.c cib_conn, options.cib_options, TRUE, options.force); options 1058 tools/crm_resource.c rc = cli_resource_clear(options.rsc_id, NULL, data_set->nodes, options 1059 tools/crm_resource.c cib_conn, options.cib_options, TRUE, options.force); options 1099 tools/crm_resource.c if (options.rsc_type == NULL) { options 1106 tools/crm_resource.c msg_data = create_xml_node(NULL, options.rsc_type); options 1107 tools/crm_resource.c crm_xml_add(msg_data, XML_ATTR_ID, options.rsc_id); options 1110 tools/crm_resource.c options.cib_options); options 1170 tools/crm_resource.c switch (options.rsc_cmd) { options 1233 tools/crm_resource.c if (options.xml_file != NULL) { options 1234 tools/crm_resource.c *cib_xml_copy = filename2xml(options.xml_file); options 1269 tools/crm_resource.c const char *router_node = options.host_uname; options 1272 tools/crm_resource.c if (options.host_uname) { options 1273 tools/crm_resource.c pe_node_t *node = pe_find_node(data_set->nodes, options.host_uname); options 1281 tools/crm_resource.c options.host_uname); options 1291 tools/crm_resource.c options.host_uname? options.host_uname : "all nodes"); options 1296 tools/crm_resource.c crm_debug("Re-checking the state of all resources on %s", options.host_uname?options.host_uname:"all nodes"); options 1298 tools/crm_resource.c rc = pcmk__node_attr_request_clear(NULL, options.host_uname, options 1302 tools/crm_resource.c if (pcmk_controld_api_reprobe(controld_api, options.host_uname, options 1315 tools/crm_resource.c if (options.force == FALSE) { options 1320 tools/crm_resource.c rsc->id, options.rsc_id, (options.host_uname? options.host_uname: "all nodes")); options 1321 tools/crm_resource.c rc = cli_resource_delete(controld_api, options.host_uname, rsc, NULL, options 1322 tools/crm_resource.c 0, FALSE, data_set, options.force); options 1340 tools/crm_resource.c if (pcmk__str_empty(options.rsc_type)) { options 1346 tools/crm_resource.c } else if (pcmk__str_empty(options.prop_value)) { options 1353 tools/crm_resource.c CRM_LOG_ASSERT(options.prop_name != NULL); options 1355 tools/crm_resource.c msg_data = create_xml_node(NULL, options.rsc_type); options 1356 tools/crm_resource.c crm_xml_add(msg_data, XML_ATTR_ID, options.rsc_id); options 1357 tools/crm_resource.c crm_xml_add(msg_data, options.prop_name, options.prop_value); options 1360 tools/crm_resource.c options.cib_options); options 1422 tools/crm_resource.c if (options.rsc_id != NULL) { options 1427 tools/crm_resource.c } else if (options.rsc_cmd != cmd_execute_agent) { options 1435 tools/crm_resource.c } else if (pcmk__str_eq(options.v_class, "stonith", pcmk__str_none)) { options 1436 tools/crm_resource.c if (options.v_provider != NULL) { options 1440 tools/crm_resource.c } else if (stonith_agent_exists(options.v_agent, 0) == FALSE) { options 1442 tools/crm_resource.c "%s is not a known stonith agent", options.v_agent ? options.v_agent : ""); options 1445 tools/crm_resource.c } else if (resources_agent_exists(options.v_class, options.v_provider, options.v_agent) == FALSE) { options 1448 tools/crm_resource.c options.v_class ? options.v_class : "", options 1449 tools/crm_resource.c options.v_provider ? options.v_provider : "", options 1450 tools/crm_resource.c options.v_agent ? options.v_agent : ""); options 1457 tools/crm_resource.c if (options.cmdline_params == NULL) { options 1458 tools/crm_resource.c options.cmdline_params = pcmk__strkey_table(free, free); options 1460 tools/crm_resource.c options.require_resource = FALSE; options 1461 tools/crm_resource.c options.require_dataset = FALSE; options 1462 tools/crm_resource.c options.require_cib = FALSE; options 1473 tools/crm_resource.c { "resource", 'r', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, &options.rsc_id, options 1476 tools/crm_resource.c { G_OPTION_REMAINING, 0, G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING_ARRAY, &options.remainder, options 1580 tools/crm_resource.c if (options.rsc_cmd == cmd_none) { options 1581 tools/crm_resource.c options.rsc_cmd = cmd_list_resources; options 1582 tools/crm_resource.c options.require_resource = FALSE; options 1586 tools/crm_resource.c if (options.clear_expired && (options.rsc_cmd != cmd_clear)) { options 1592 tools/crm_resource.c if ((options.remainder != NULL) && (options.override_params != NULL)) { options 1594 tools/crm_resource.c for (gchar **s = options.remainder; *s; s++) { options 1600 tools/crm_resource.c g_hash_table_replace(options.override_params, name, value); options 1613 tools/crm_resource.c } else if (options.remainder != NULL) { options 1619 tools/crm_resource.c for (gchar **s = options.remainder; *s; s++) { options 1628 tools/crm_resource.c for (gchar **s = options.remainder; *s; s++) { options 1650 tools/crm_resource.c switch (options.rsc_cmd) { options 1667 tools/crm_resource.c if (options.rsc_cmd == cmd_colocations || options.rsc_cmd == cmd_colocations_deep || options 1668 tools/crm_resource.c options.rsc_cmd == cmd_list_resources) { options 1678 tools/crm_resource.c if (options.cmdline_config) { options 1688 tools/crm_resource.c } else if (options.cmdline_params != NULL) { options 1690 tools/crm_resource.c g_hash_table_destroy(options.cmdline_params); options 1691 tools/crm_resource.c options.cmdline_params = NULL; options 1694 tools/crm_resource.c if (options.require_resource && (options.rsc_id == NULL)) { options 1700 tools/crm_resource.c if (options.require_node && (options.host_uname == NULL)) { options 1711 tools/crm_resource.c if (options.force) { options 1713 tools/crm_resource.c cib__set_call_options(options.cib_options, crm_system_name, options 1717 tools/crm_resource.c if (options.find_flags && options.rsc_id) { options 1718 tools/crm_resource.c options.require_dataset = TRUE; options 1722 tools/crm_resource.c if (options.require_cib) { options 1741 tools/crm_resource.c if (options.require_dataset) { options 1750 tools/crm_resource.c if (options.find_flags && options.rsc_id) { options 1751 tools/crm_resource.c rsc = pe_find_resource_with_flags(data_set->resources, options.rsc_id, options 1752 tools/crm_resource.c options.find_flags); options 1756 tools/crm_resource.c "Resource '%s' not found", options.rsc_id); options 1763 tools/crm_resource.c if (strchr(options.rsc_id, ':') != NULL && pe_rsc_is_clone(rsc->parent) && options 1764 tools/crm_resource.c (options.rsc_cmd == cmd_ban || options.rsc_cmd == cmd_clear || options 1765 tools/crm_resource.c options.rsc_cmd == cmd_move || options.rsc_cmd == cmd_restart)) { options 1768 tools/crm_resource.c "Cannot operate on clone resource instance '%s'", options.rsc_id); options 1774 tools/crm_resource.c if ((options.host_uname != NULL) && (data_set != NULL)) { options 1775 tools/crm_resource.c node = pe_find_node(data_set->nodes, options.host_uname); options 1780 tools/crm_resource.c "Node '%s' not found", options.host_uname); options 1786 tools/crm_resource.c if (options.require_crmd) { options 1809 tools/crm_resource.c switch (options.rsc_cmd) { options 1836 tools/crm_resource.c rc = list_providers(out, options.agent_spec); options 1840 tools/crm_resource.c rc = list_agents(out, options.agent_spec); options 1844 tools/crm_resource.c rc = show_metadata(out, options.agent_spec); options 1853 tools/crm_resource.c rc = cli_resource_restart(out, rsc, node, options.move_lifetime, options 1854 tools/crm_resource.c options.timeout_ms, cib_conn, options 1855 tools/crm_resource.c options.cib_options, options.promoted_role_only, options 1856 tools/crm_resource.c options.force); options 1860 tools/crm_resource.c rc = wait_till_stable(out, options.timeout_ms, cib_conn); options 1864 tools/crm_resource.c if (options.cmdline_config) { options 1866 tools/crm_resource.c options.v_class, options.v_provider, options.v_agent, options 1867 tools/crm_resource.c options.operation, options.cmdline_params, options 1868 tools/crm_resource.c options.override_params, options.timeout_ms, options 1869 tools/crm_resource.c args->verbosity, options.force, options.check_level); options 1871 tools/crm_resource.c exit_code = cli_resource_execute(rsc, options.rsc_id, options 1872 tools/crm_resource.c options.operation, options.override_params, options 1873 tools/crm_resource.c options.timeout_ms, cib_conn, data_set, options 1874 tools/crm_resource.c args->verbosity, options.force, options.check_level); options 1879 tools/crm_resource.c node = pe_find_node(data_set->nodes, options.host_uname); options 1884 tools/crm_resource.c options.override_params, data_set); options 1903 tools/crm_resource.c rc = cli_resource_fail(controld_api, options.host_uname, options 1904 tools/crm_resource.c options.rsc_id, data_set); options 1911 tools/crm_resource.c rc = cli_resource_print_operations(options.rsc_id, options 1912 tools/crm_resource.c options.host_uname, TRUE, options 1917 tools/crm_resource.c rc = cli_resource_print_operations(options.rsc_id, options 1918 tools/crm_resource.c options.host_uname, FALSE, options 1923 tools/crm_resource.c GList *nodes = cli_resource_search(rsc, options.rsc_id, data_set); options 1924 tools/crm_resource.c rc = out->message(out, "resource-search-list", nodes, options.rsc_id); options 1938 tools/crm_resource.c if ((options.host_uname != NULL) && (node == NULL)) { options 1951 tools/crm_resource.c if (options.host_uname == NULL) { options 1952 tools/crm_resource.c rc = ban_or_move(out, rsc, options.move_lifetime); options 1954 tools/crm_resource.c rc = cli_resource_move(rsc, options.rsc_id, options.host_uname, options 1955 tools/crm_resource.c options.move_lifetime, cib_conn, options 1956 tools/crm_resource.c options.cib_options, data_set, options 1957 tools/crm_resource.c options.promoted_role_only, options 1958 tools/crm_resource.c options.force); options 1969 tools/crm_resource.c if (options.host_uname == NULL) { options 1970 tools/crm_resource.c rc = ban_or_move(out, rsc, options.move_lifetime); options 1974 tools/crm_resource.c rc = cli_resource_ban(out, options.rsc_id, node->details->uname, options 1975 tools/crm_resource.c options.move_lifetime, NULL, cib_conn, options 1976 tools/crm_resource.c options.cib_options, options 1977 tools/crm_resource.c options.promoted_role_only); options 1988 tools/crm_resource.c rc = out->message(out, "property-list", rsc, options.prop_name); options 2007 tools/crm_resource.c " returning the default value for %s", rsc->id, crm_str(options.prop_name)); options 2011 tools/crm_resource.c crm_debug("Looking up %s in %s", options.prop_name, rsc->id); options 2013 tools/crm_resource.c if (pcmk__str_eq(options.attr_set_type, XML_TAG_ATTR_SETS, pcmk__str_casei)) { options 2017 tools/crm_resource.c } else if (pcmk__str_eq(options.attr_set_type, XML_TAG_META_SETS, pcmk__str_casei)) { options 2027 tools/crm_resource.c rc = out->message(out, "attribute-list", rsc, options.prop_name, params); options 2035 tools/crm_resource.c if (pcmk__str_empty(options.prop_value)) { options 2043 tools/crm_resource.c rc = cli_resource_update_attribute(rsc, options.rsc_id, options 2044 tools/crm_resource.c options.prop_set, options 2045 tools/crm_resource.c options.attr_set_type, options 2046 tools/crm_resource.c options.prop_id, options 2047 tools/crm_resource.c options.prop_name, options 2048 tools/crm_resource.c options.prop_value, options 2049 tools/crm_resource.c options.recursive, cib_conn, options 2050 tools/crm_resource.c options.cib_options, data_set, options 2051 tools/crm_resource.c options.force); options 2056 tools/crm_resource.c rc = cli_resource_delete_attribute(rsc, options.rsc_id, options 2057 tools/crm_resource.c options.prop_set, options 2058 tools/crm_resource.c options.attr_set_type, options 2059 tools/crm_resource.c options.prop_id, options 2060 tools/crm_resource.c options.prop_name, cib_conn, options 2061 tools/crm_resource.c options.cib_options, data_set, options 2062 tools/crm_resource.c options.force); options 2067 tools/crm_resource.c rc = cli_cleanup_all(controld_api, options.host_uname, options 2068 tools/crm_resource.c options.operation, options.interval_spec, options 2093 tools/crm_resource.c "Unimplemented command: %d", (int) options.rsc_cmd); options 2131 tools/crm_resource.c g_free(options.host_uname); options 2132 tools/crm_resource.c g_free(options.interval_spec); options 2133 tools/crm_resource.c g_free(options.move_lifetime); options 2134 tools/crm_resource.c g_free(options.operation); options 2135 tools/crm_resource.c g_free(options.prop_id); options 2136 tools/crm_resource.c free(options.prop_name); options 2137 tools/crm_resource.c g_free(options.prop_set); options 2138 tools/crm_resource.c g_free(options.prop_value); options 2139 tools/crm_resource.c g_free(options.rsc_id); options 2140 tools/crm_resource.c g_free(options.rsc_type); options 2141 tools/crm_resource.c free(options.agent_spec); options 2142 tools/crm_resource.c free(options.v_agent); options 2143 tools/crm_resource.c free(options.v_class); options 2144 tools/crm_resource.c free(options.v_provider); options 2145 tools/crm_resource.c g_free(options.xml_file); options 2146 tools/crm_resource.c g_strfreev(options.remainder); options 2148 tools/crm_resource.c if (options.override_params != NULL) { options 2149 tools/crm_resource.c g_hash_table_destroy(options.override_params); options 45 tools/crm_rule.c } options = { options 63 tools/crm_rule.c { "xml-text", 'X', 0, G_OPTION_ARG_STRING, &options.input_xml, options 71 tools/crm_rule.c { "date", 'd', 0, G_OPTION_ARG_STRING, &options.date, options 74 tools/crm_rule.c { "rule", 'r', 0, G_OPTION_ARG_STRING_ARRAY, &options.rules, options 84 tools/crm_rule.c options.mode = crm_rule_mode_check; options 318 tools/crm_rule.c switch(options.mode) { options 320 tools/crm_rule.c if (options.rules == NULL) { options 336 tools/crm_rule.c rule_date = crm_time_new(options.date); options 347 tools/crm_rule.c if (pcmk__str_eq(options.input_xml, "-", pcmk__str_casei)) { options 355 tools/crm_rule.c } else if (options.input_xml != NULL) { options 356 tools/crm_rule.c input = string2xml(options.input_xml); options 361 tools/crm_rule.c "Couldn't parse input string: %s\n", options.input_xml); options 393 tools/crm_rule.c switch(options.mode) { options 395 tools/crm_rule.c for (char **s = options.rules; *s != NULL; s++) { options 49 tools/crm_simulate.c } options = { options 69 tools/crm_simulate.c options.flags |= pcmk_sim_all_actions; options 87 tools/crm_simulate.c options.store = TRUE; options 88 tools/crm_simulate.c options.flags |= pcmk_sim_process | pcmk_sim_simulate; options 94 tools/crm_simulate.c if (options.xml_file) { options 95 tools/crm_simulate.c free(options.xml_file); options 98 tools/crm_simulate.c options.xml_file = NULL; options 99 tools/crm_simulate.c options.flags &= ~pcmk_sim_sanitized; options 105 tools/crm_simulate.c options.injections->node_down = g_list_append(options.injections->node_down, g_strdup(optarg)); options 111 tools/crm_simulate.c options.injections->node_fail = g_list_append(options.injections->node_fail, g_strdup(optarg)); options 118 tools/crm_simulate.c options.injections->node_up = g_list_append(options.injections->node_up, g_strdup(optarg)); options 124 tools/crm_simulate.c options.flags |= pcmk_sim_process | pcmk_sim_simulate; options 125 tools/crm_simulate.c options.injections->op_fail = g_list_append(options.injections->op_fail, g_strdup(optarg)); options 131 tools/crm_simulate.c options.injections->op_inject = g_list_append(options.injections->op_inject, g_strdup(optarg)); options 137 tools/crm_simulate.c options.flags |= pcmk_sim_show_pending; options 143 tools/crm_simulate.c options.flags |= pcmk_sim_process; options 149 tools/crm_simulate.c pcmk__str_update(&options.injections->quorum, optarg); options 155 tools/crm_simulate.c options.flags |= pcmk_sim_process; options 156 tools/crm_simulate.c pcmk__str_update(&options.dot_file, optarg); options 162 tools/crm_simulate.c options.flags |= pcmk_sim_process; options 163 tools/crm_simulate.c pcmk__str_update(&options.graph_file, optarg); options 169 tools/crm_simulate.c options.flags |= pcmk_sim_process | pcmk_sim_show_scores; options 175 tools/crm_simulate.c options.flags |= pcmk_sim_process | pcmk_sim_simulate; options 181 tools/crm_simulate.c options.injections->ticket_activate = g_list_append(options.injections->ticket_activate, g_strdup(optarg)); options 187 tools/crm_simulate.c options.injections->ticket_grant = g_list_append(options.injections->ticket_grant, g_strdup(optarg)); options 193 tools/crm_simulate.c options.injections->ticket_revoke = g_list_append(options.injections->ticket_revoke, g_strdup(optarg)); options 199 tools/crm_simulate.c options.injections->ticket_standby = g_list_append(options.injections->ticket_standby, g_strdup(optarg)); options 205 tools/crm_simulate.c options.flags |= pcmk_sim_process | pcmk_sim_show_utilization; options 211 tools/crm_simulate.c pcmk__str_update(&options.injections->watchdog, optarg); options 217 tools/crm_simulate.c pcmk__str_update(&options.xml_file, optarg); options 218 tools/crm_simulate.c options.flags |= pcmk_sim_sanitized; options 224 tools/crm_simulate.c pcmk__str_update(&options.xml_file, "-"); options 225 tools/crm_simulate.c options.flags |= pcmk_sim_sanitized; options 251 tools/crm_simulate.c { "profile", 'P', 0, G_OPTION_ARG_FILENAME, &options.test_dir, options 254 tools/crm_simulate.c { "repeat", 'N', 0, G_OPTION_ARG_INT, &options.repeat, options 285 tools/crm_simulate.c { "set-datetime", 't', 0, G_OPTION_ARG_STRING, &options.use_date, options 311 tools/crm_simulate.c { "save-input", 'I', 0, G_OPTION_ARG_FILENAME, &options.input_file, options 314 tools/crm_simulate.c { "save-output", 'O', 0, G_OPTION_ARG_FILENAME, &options.output_file, options 463 tools/crm_simulate.c options.injections = calloc(1, sizeof(pcmk_injections_t)); options 464 tools/crm_simulate.c if (options.injections == NULL) { options 470 tools/crm_simulate.c options.xml_file = strdup("-"); options 489 tools/crm_simulate.c !pcmk_is_set(options.flags, pcmk_sim_show_scores) && options 490 tools/crm_simulate.c !pcmk_is_set(options.flags, pcmk_sim_show_utilization)) { options 507 tools/crm_simulate.c options.flags |= pcmk_sim_verbose; options 523 tools/crm_simulate.c if (pcmk_is_set(options.flags, pcmk_sim_show_scores)) { options 526 tools/crm_simulate.c if (pcmk_is_set(options.flags, pcmk_sim_show_utilization)) { options 531 tools/crm_simulate.c if (options.test_dir != NULL) { options 533 tools/crm_simulate.c pcmk__profile_dir(options.test_dir, options.repeat, data_set, options.use_date); options 538 tools/crm_simulate.c rc = setup_input(options.xml_file, options.store ? options.xml_file : options.output_file, &error); options 543 tools/crm_simulate.c rc = pcmk__simulate(data_set, out, options.injections, options.flags, section_opts, options 544 tools/crm_simulate.c options.use_date, options.input_file, options.graph_file, options 545 tools/crm_simulate.c options.dot_file); options 551 tools/crm_simulate.c free(options.dot_file); options 552 tools/crm_simulate.c free(options.graph_file); options 553 tools/crm_simulate.c g_free(options.input_file); options 554 tools/crm_simulate.c g_free(options.output_file); options 555 tools/crm_simulate.c g_free(options.test_dir); options 556 tools/crm_simulate.c free(options.use_date); options 557 tools/crm_simulate.c free(options.xml_file); options 559 tools/crm_simulate.c pcmk_free_injections(options.injections); options 54 tools/crm_ticket.c } options = { options 67 tools/crm_ticket.c pcmk__str_update(&options.attr_value, optarg); options 69 tools/crm_ticket.c if (!options.attr_name || !options.attr_value) { options 73 tools/crm_ticket.c g_hash_table_insert(attr_set, strdup(options.attr_name), strdup(options.attr_value)); options 74 tools/crm_ticket.c pcmk__str_update(&options.attr_name, NULL); options 75 tools/crm_ticket.c pcmk__str_update(&options.attr_value, NULL); options 85 tools/crm_ticket.c options.ticket_cmd = 'l'; options 87 tools/crm_ticket.c options.ticket_cmd = 'L'; options 89 tools/crm_ticket.c options.ticket_cmd = 'w'; options 91 tools/crm_ticket.c options.ticket_cmd = 'q'; options 93 tools/crm_ticket.c options.ticket_cmd = 'c'; options 95 tools/crm_ticket.c options.ticket_cmd = 'C'; options 110 tools/crm_ticket.c pcmk__str_update(&options.get_attr_name, optarg); options 111 tools/crm_ticket.c options.ticket_cmd = 'G'; options 136 tools/crm_ticket.c pcmk__str_update(&options.attr_name, optarg); options 138 tools/crm_ticket.c if (!options.attr_name || !options.attr_value) { options 142 tools/crm_ticket.c g_hash_table_insert(attr_set, strdup(options.attr_name), strdup(options.attr_value)); options 143 tools/crm_ticket.c pcmk__str_update(&options.attr_name, NULL); options 144 tools/crm_ticket.c pcmk__str_update(&options.attr_value, NULL); options 220 tools/crm_ticket.c { "default", 'd', 0, G_OPTION_ARG_STRING, &options.attr_default, options 225 tools/crm_ticket.c { "force", 'f', 0, G_OPTION_ARG_NONE, &options.force, options 229 tools/crm_ticket.c { "ticket", 't', 0, G_OPTION_ARG_STRING, &options.ticket_id, options 233 tools/crm_ticket.c { "xml-file", 'x', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_STRING, &options.xml_file, options 241 tools/crm_ticket.c { "set-name", 'n', 0, G_OPTION_ARG_STRING, &options.set_name, options 245 tools/crm_ticket.c { "nvpair", 'i', 0, G_OPTION_ARG_STRING, &options.attr_id, options 249 tools/crm_ticket.c { "quiet", 'Q', 0, G_OPTION_ARG_NONE, &options.quiet, options 549 tools/crm_ticket.c if (options.force) { options 789 tools/crm_ticket.c if (options.xml_file != NULL) { options 790 tools/crm_ticket.c cib_xml_copy = filename2xml(options.xml_file); options 820 tools/crm_ticket.c if (options.ticket_cmd == 'l' || options.ticket_cmd == 'L' || options.ticket_cmd == 'w') { options 824 tools/crm_ticket.c if (options.ticket_cmd == 'L') { options 826 tools/crm_ticket.c } else if (options.ticket_cmd == 'w') { options 830 tools/crm_ticket.c if (options.ticket_id) { options 831 tools/crm_ticket.c pe_ticket_t *ticket = find_ticket(options.ticket_id, data_set); options 836 tools/crm_ticket.c "No such ticket '%s'", options.ticket_id); options 845 tools/crm_ticket.c } else if (options.ticket_cmd == 'q') { options 846 tools/crm_ticket.c rc = dump_ticket_xml(cib_conn, options.ticket_id); options 854 tools/crm_ticket.c } else if (options.ticket_cmd == 'c') { options 855 tools/crm_ticket.c rc = dump_constraints(cib_conn, options.ticket_id); options 863 tools/crm_ticket.c } else if (options.ticket_cmd == 'G') { options 866 tools/crm_ticket.c if (options.ticket_id == NULL) { options 873 tools/crm_ticket.c rc = get_ticket_state_attr(options.ticket_id, options.get_attr_name, &value, data_set); options 876 tools/crm_ticket.c } else if (rc == ENXIO && options.attr_default) { options 877 tools/crm_ticket.c fprintf(stdout, "%s\n", options.attr_default); options 882 tools/crm_ticket.c } else if (options.ticket_cmd == 'C') { options 883 tools/crm_ticket.c if (options.ticket_id == NULL) { options 890 tools/crm_ticket.c if (options.force == FALSE) { options 893 tools/crm_ticket.c ticket = find_ticket(options.ticket_id, data_set); options 897 tools/crm_ticket.c "No such ticket '%s'", options.ticket_id); options 902 tools/crm_ticket.c ticket_warning(options.ticket_id, "revoke"); options 908 tools/crm_ticket.c rc = delete_ticket_state(options.ticket_id, cib_conn); options 917 tools/crm_ticket.c if (options.ticket_id == NULL) { options 924 tools/crm_ticket.c if (options.attr_value options 925 tools/crm_ticket.c && (pcmk__str_empty(options.attr_name))) { options 928 tools/crm_ticket.c "Must supply attribute name with -S for -v %s", options.attr_value); options 932 tools/crm_ticket.c if (options.attr_name options 933 tools/crm_ticket.c && (pcmk__str_empty(options.attr_value))) { options 936 tools/crm_ticket.c "Must supply attribute value with -v for -S %s", options.attr_value); options 940 tools/crm_ticket.c if (!allow_modification(options.ticket_id)) { options 947 tools/crm_ticket.c rc = modify_ticket_state(options.ticket_id, cib_conn, data_set); options 955 tools/crm_ticket.c } else if (options.ticket_cmd == 'S') { options 960 tools/crm_ticket.c if (pcmk__str_empty(options.attr_name)) { options 967 tools/crm_ticket.c if (options.ticket_id == NULL) { options 974 tools/crm_ticket.c if (pcmk__str_empty(options.attr_value)) { options 977 tools/crm_ticket.c "Must supply value with -v for -S %s", options.attr_name); options 984 tools/crm_ticket.c "Unknown command: %c", options.ticket_cmd); options 1009 tools/crm_ticket.c g_free(options.attr_default); options 1010 tools/crm_ticket.c g_free(options.attr_id); options 1011 tools/crm_ticket.c free(options.attr_name); options 1012 tools/crm_ticket.c free(options.attr_value); options 1013 tools/crm_ticket.c free(options.get_attr_name); options 1014 tools/crm_ticket.c g_free(options.set_name); options 1015 tools/crm_ticket.c g_free(options.ticket_id); options 1016 tools/crm_ticket.c g_free(options.xml_file); options 46 tools/crm_verify.c } options; options 50 tools/crm_verify.c &options.use_live_cib, "Check the configuration used by the running cluster", options 53 tools/crm_verify.c &options.xml_file, "Check the configuration in the named file", options 56 tools/crm_verify.c &options.xml_stdin, "Check the configuration piped in via stdin", options 59 tools/crm_verify.c &options.xml_string, "Check the configuration in the supplied string", options 67 tools/crm_verify.c &options.cib_save, "Save verified XML to named file (most useful with -L)", options 148 tools/crm_verify.c if (options.use_live_cib) { options 157 tools/crm_verify.c } else if (options.xml_file != NULL) { options 158 tools/crm_verify.c cib_object = filename2xml(options.xml_file); options 161 tools/crm_verify.c g_set_error(&error, PCMK__RC_ERROR, rc, "Couldn't parse input file: %s", options.xml_file); options 165 tools/crm_verify.c } else if (options.xml_string != NULL) { options 166 tools/crm_verify.c cib_object = string2xml(options.xml_string); options 169 tools/crm_verify.c g_set_error(&error, PCMK__RC_ERROR, rc, "Couldn't parse input string: %s", options.xml_string); options 172 tools/crm_verify.c } else if (options.xml_stdin) { options 195 tools/crm_verify.c if (options.cib_save != NULL) { options 196 tools/crm_verify.c write_xml_file(cib_object, options.cib_save, FALSE); options 234 tools/crm_verify.c if ((status == NULL) && !options.use_live_cib) { options 268 tools/crm_verify.c free(options.cib_save); options 269 tools/crm_verify.c free(options.xml_file); options 270 tools/crm_verify.c free(options.xml_string); options 40 tools/crmadmin.c } options = { options 73 tools/crmadmin.c { "health", 'H', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &options.health, options 87 tools/crmadmin.c { "bash-export", 'B', 0, G_OPTION_ARG_NONE, &options.BASH_EXPORT, options 91 tools/crmadmin.c { "ipc-name", 'i', 0, G_OPTION_ARG_STRING, &options.ipc_name, options 120 tools/crmadmin.c options.timeout = crm_parse_interval_spec(optarg); options 127 tools/crmadmin.c pcmk__str_update(&options.optarg, optarg); options 217 tools/crmadmin.c if (options.health) { options 238 tools/crmadmin.c rc = pcmk__controller_status(out, options.optarg, options.timeout); options 241 tools/crmadmin.c rc = pcmk__pacemakerd_status(out, options.ipc_name, options.timeout); options 244 tools/crmadmin.c rc = pcmk__list_nodes(out, options.optarg, options.BASH_EXPORT); options 247 tools/crmadmin.c rc = pcmk__designated_controller(out, options.timeout); options 72 tools/stonith_admin.c } options = { options 87 tools/stonith_admin.c { "register", 'R', 0, G_OPTION_ARG_STRING, &options.register_dev, options 91 tools/stonith_admin.c { "deregister", 'D', 0, G_OPTION_ARG_STRING, &options.unregister_dev, options 94 tools/stonith_admin.c { "register-level", 'r', 0, G_OPTION_ARG_STRING, &options.register_level, options 99 tools/stonith_admin.c { "deregister-level", 'd', 0, G_OPTION_ARG_STRING, &options.unregister_level, options 108 tools/stonith_admin.c { "list", 'l', 0, G_OPTION_ARG_STRING, &options.terminate, options 112 tools/stonith_admin.c { "list-registered", 'L', 0, G_OPTION_ARG_NONE, &options.registered, options 115 tools/stonith_admin.c { "list-installed", 'I', 0, G_OPTION_ARG_NONE, &options.installed, options 118 tools/stonith_admin.c { "list-targets", 's', 0, G_OPTION_ARG_STRING, &options.targets, options 122 tools/stonith_admin.c { "metadata", 'M', 0, G_OPTION_ARG_NONE, &options.metadata, options 126 tools/stonith_admin.c { "query", 'Q', 0, G_OPTION_ARG_STRING, &options.query, options 129 tools/stonith_admin.c { "history", 'H', 0, G_OPTION_ARG_STRING, &options.history, options 136 tools/stonith_admin.c { "last", 'h', 0, G_OPTION_ARG_STRING, &options.last_fenced, options 140 tools/stonith_admin.c { "validate", 'K', 0, G_OPTION_ARG_NONE, &options.validate_cfg, options 150 tools/stonith_admin.c { "fence", 'F', 0, G_OPTION_ARG_STRING, &options.fence_host, options 153 tools/stonith_admin.c { "unfence", 'U', 0, G_OPTION_ARG_STRING, &options.unfence_host, options 156 tools/stonith_admin.c { "reboot", 'B', 0, G_OPTION_ARG_STRING, &options.reboot_host, options 159 tools/stonith_admin.c { "confirm", 'C', 0, G_OPTION_ARG_STRING, &options.confirm_host, options 167 tools/stonith_admin.c { "cleanup", 'c', 0, G_OPTION_ARG_NONE, &options.cleanup, options 170 tools/stonith_admin.c { "broadcast", 'b', 0, G_OPTION_ARG_NONE, &options.broadcast, options 173 tools/stonith_admin.c { "agent", 'a', 0, G_OPTION_ARG_STRING, &options.agent, options 202 tools/stonith_admin.c { "index", 'i', 0, G_OPTION_ARG_INT, &options.fence_level, options 206 tools/stonith_admin.c { "timeout", 't', 0, G_OPTION_ARG_INT, &options.timeout, options 210 tools/stonith_admin.c { "delay", 'y', 0, G_OPTION_ARG_INT, &options.delay, options 216 tools/stonith_admin.c { "as-node-id", 'n', 0, G_OPTION_ARG_NONE, &options.as_nodeid, options 253 tools/stonith_admin.c options.params = stonith_key_value_add(options.params, optarg, env); options 262 tools/stonith_admin.c options.devices = stonith_key_value_add(options.devices, NULL, optarg); options 268 tools/stonith_admin.c options.tolerance = crm_get_msec(optarg) / 1000; options 289 tools/stonith_admin.c options.params = stonith_key_value_add(options.params, name, value); options 341 tools/stonith_admin.c options.timeout * 1000, options 342 tools/stonith_admin.c options.tolerance * 1000, options 343 tools/stonith_admin.c options.delay, &reason); options 414 tools/stonith_admin.c if (options.validate_cfg) { options 420 tools/stonith_admin.c if (options.installed) { options 425 tools/stonith_admin.c if (options.registered) { options 429 tools/stonith_admin.c if (options.register_dev != NULL) { options 432 tools/stonith_admin.c device = options.register_dev; options 435 tools/stonith_admin.c if (options.query != NULL) { options 437 tools/stonith_admin.c device = options.query; options 440 tools/stonith_admin.c if (options.unregister_dev != NULL) { options 442 tools/stonith_admin.c device = options.unregister_dev; options 445 tools/stonith_admin.c if (options.targets != NULL) { options 447 tools/stonith_admin.c device = options.targets; options 450 tools/stonith_admin.c if (options.terminate != NULL) { options 452 tools/stonith_admin.c target = options.terminate; options 455 tools/stonith_admin.c if (options.metadata) { options 461 tools/stonith_admin.c if (options.reboot_host != NULL) { options 464 tools/stonith_admin.c target = options.reboot_host; options 468 tools/stonith_admin.c if (options.fence_host != NULL) { options 471 tools/stonith_admin.c target = options.fence_host; options 475 tools/stonith_admin.c if (options.unfence_host != NULL) { options 478 tools/stonith_admin.c target = options.unfence_host; options 482 tools/stonith_admin.c if (options.confirm_host != NULL) { options 484 tools/stonith_admin.c target = options.confirm_host; options 488 tools/stonith_admin.c if (options.last_fenced != NULL) { options 490 tools/stonith_admin.c target = options.last_fenced; options 493 tools/stonith_admin.c if (options.history != NULL) { options 495 tools/stonith_admin.c target = options.history; options 498 tools/stonith_admin.c if (options.register_level != NULL) { options 500 tools/stonith_admin.c target = options.register_level; options 503 tools/stonith_admin.c if (options.unregister_level != NULL) { options 505 tools/stonith_admin.c target = options.unregister_level; options 517 tools/stonith_admin.c if (required_agent && options.agent == NULL) { options 543 tools/stonith_admin.c rc = pcmk__fence_installed(out, st, options.timeout*1000); options 551 tools/stonith_admin.c rc = pcmk__fence_registered(out, st, target, options.timeout*1000); options 559 tools/stonith_admin.c rc = st->cmds->monitor(st, st_opts, device, options.timeout); options 561 tools/stonith_admin.c rc = st->cmds->list(st, st_opts, device, NULL, options.timeout); options 567 tools/stonith_admin.c rc = pcmk__fence_list_targets(out, st, device, options.timeout*1000); options 575 tools/stonith_admin.c rc = st->cmds->register_device(st, st_opts, device, NULL, options.agent, options 576 tools/stonith_admin.c options.params); options 586 tools/stonith_admin.c rc = pcmk__fence_unregister_level(st, target, options.fence_level); options 590 tools/stonith_admin.c rc = pcmk__fence_register_level(st, target, options.fence_level, options.devices); options 594 tools/stonith_admin.c rc = pcmk__fence_metadata(out, st, options.agent, options.timeout*1000); options 619 tools/stonith_admin.c rc = pcmk__fence_last(out, target, options.as_nodeid); options 623 tools/stonith_admin.c rc = pcmk__fence_history(out, st, target, options.timeout*1000, args->verbosity, options 624 tools/stonith_admin.c options.broadcast, options.cleanup); options 628 tools/stonith_admin.c device = options.devices ? options.devices->key : NULL; options 629 tools/stonith_admin.c rc = pcmk__fence_validate(out, st, options.agent, device, options.params, options 630 tools/stonith_admin.c options.timeout*1000); options 648 tools/stonith_admin.c stonith_key_value_freeall(options.params, 1, 1);