options 641 daemons/attrd/attrd_cib.c attrd_write_attributes(uint32_t options) options 647 daemons/attrd/attrd_cib.c pcmk_is_set(options, attrd_write_all)? "all" : "changed"); options 650 daemons/attrd/attrd_cib.c if (!pcmk_is_set(options, attrd_write_all) && options 659 daemons/attrd/attrd_cib.c if (pcmk_is_set(options, attrd_write_all) || options 661 daemons/attrd/attrd_cib.c bool ignore_delay = pcmk_is_set(options, attrd_write_no_delay); options 218 daemons/attrd/pacemaker-attrd.h void attrd_write_attributes(uint32_t options); options 43 daemons/based/based_messages.c cib_process_shutdown_req(const char *op, int options, const char *section, xmlNode * req, options 68 daemons/based/based_messages.c cib_process_noop(const char *op, int options, const char *section, xmlNode *req, options 78 daemons/based/based_messages.c cib_process_readwrite(const char *op, int options, const char *section, xmlNode * req, options 138 daemons/based/based_messages.c cib_process_ping(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, options 186 daemons/based/based_messages.c cib_process_sync(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, options 193 daemons/based/based_messages.c cib_process_upgrade_server(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, options 207 daemons/based/based_messages.c op, options, section, req, input, existing_cib, result_cib, answer); options 241 daemons/based/based_messages.c op, options, section, up, input, existing_cib, result_cib, answer); options 287 daemons/based/based_messages.c cib_process_sync_one(const char *op, int options, const char *section, xmlNode * req, options 295 daemons/based/based_messages.c cib_server_process_diff(const char *op, int options, const char *section, xmlNode * req, options 329 daemons/based/based_messages.c rc = cib_process_diff(op, options, section, req, input, existing_cib, result_cib, answer); options 340 daemons/based/based_messages.c if (options & cib_force_diff) { options 358 daemons/based/based_messages.c cib_process_replace_svr(const char *op, int options, const char *section, xmlNode * req, options 363 daemons/based/based_messages.c cib_process_replace(op, options, section, req, input, existing_cib, result_cib, answer); options 373 daemons/based/based_messages.c cib_process_delete_absolute(const char *op, int options, const char *section, xmlNode * req, options 468 daemons/based/based_messages.c cib_process_commit_transaction(const char *op, int options, const char *section, options 495 daemons/based/based_messages.c cib_process_schemas(const char *op, int options, const char *section, xmlNode *req, options 88 daemons/based/pacemaker-based.h int cib_process_shutdown_req(const char *op, int options, const char *section, options 92 daemons/based/pacemaker-based.h int cib_process_noop(const char *op, int options, const char *section, options 95 daemons/based/pacemaker-based.h int cib_process_ping(const char *op, int options, const char *section, options 98 daemons/based/pacemaker-based.h int cib_process_readwrite(const char *op, int options, const char *section, options 101 daemons/based/pacemaker-based.h int cib_process_replace_svr(const char *op, int options, const char *section, options 104 daemons/based/pacemaker-based.h int cib_server_process_diff(const char *op, int options, const char *section, options 107 daemons/based/pacemaker-based.h int cib_process_sync(const char *op, int options, const char *section, options 110 daemons/based/pacemaker-based.h int cib_process_sync_one(const char *op, int options, const char *section, options 113 daemons/based/pacemaker-based.h int cib_process_delete_absolute(const char *op, int options, options 117 daemons/based/pacemaker-based.h int cib_process_upgrade_server(const char *op, int options, const char *section, options 121 daemons/based/pacemaker-based.h int cib_process_commit_transaction(const char *op, int options, options 125 daemons/based/pacemaker-based.h int cib_process_schemas(const char *op, int options, const char *section, options 367 daemons/controld/controld_cib.c int options) options 378 daemons/controld/controld_cib.c cib__set_call_options(options, "node state deletion", options 380 daemons/controld/controld_cib.c cib_rc = cib->cmds->remove(cib, xpath, NULL, options); options 824 daemons/controld/controld_cib.c controld_update_cib(const char *section, xmlNode *data, int options, options 833 daemons/controld/controld_cib.c cib_rc = cib->cmds->modify(cib, section, data, options); options 46 daemons/controld/controld_cib.h int controld_update_cib(const char *section, xmlNode *data, int options, options 64 daemons/controld/controld_cib.h enum controld_section_e section, int options); options 44 daemons/controld/controld_election.c controld_configure_election(GHashTable *options) options 46 daemons/controld/controld_election.c const char *value = g_hash_table_lookup(options, PCMK_OPT_ELECTION_TIMEOUT); options 636 daemons/controld/controld_execd_state.c const char *agent, char **output, enum lrmd_call_options options) options 662 daemons/controld/controld_execd_state.c class, provider, agent, output, options, params); options 683 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 697 daemons/controld/controld_execd_state.c rsc = ((lrmd_t *) lrm_state->conn)->cmds->get_rsc_info(lrm_state->conn, rsc_id, options); options 778 daemons/controld/controld_execd_state.c const char *provider, const char *agent, enum lrmd_call_options options) options 794 daemons/controld/controld_execd_state.c agent, options); options 799 daemons/controld/controld_execd_state.c const char *rsc_id, enum lrmd_call_options options) options 817 daemons/controld/controld_execd_state.c return ((lrmd_t *) lrm_state->conn)->cmds->unregister_rsc(lrm_state->conn, rsc_id, options); options 80 daemons/controld/controld_fencing.c controld_configure_fencing(GHashTable *options) options 84 daemons/controld/controld_fencing.c value = g_hash_table_lookup(options, PCMK_OPT_FENCE_REACTION); options 87 daemons/controld/controld_fencing.c value = g_hash_table_lookup(options, PCMK_OPT_STONITH_MAX_ATTEMPTS); options 938 daemons/controld/controld_fencing.c uint32_t options = st_opt_none; // Group of enum stonith_call_options options 943 daemons/controld/controld_fencing.c stonith__set_call_options(options, target, st_opt_allow_suicide); options 945 daemons/controld/controld_fencing.c return stonith_api->cmds->fence_with_delay(stonith_api, options, target, options 16 daemons/controld/controld_fencing.h void controld_configure_fencing(GHashTable *options); options 139 daemons/controld/controld_lrm.h const char *agent, char **output, enum lrmd_call_options options); options 148 daemons/controld/controld_lrm.h const char *rsc_id, enum lrmd_call_options options); options 152 daemons/controld/controld_lrm.h const char *provider, const char *agent, enum lrmd_call_options options); options 154 daemons/controld/controld_lrm.h const char *rsc_id, enum lrmd_call_options options); options 446 daemons/controld/controld_throttle.c controld_configure_throttle(GHashTable *options) options 448 daemons/controld/controld_throttle.c const char *value = g_hash_table_lookup(options, PCMK_OPT_LOAD_THRESHOLD); options 454 daemons/controld/controld_throttle.c value = g_hash_table_lookup(options, PCMK_OPT_NODE_ACTION_LIMIT); options 12 daemons/controld/controld_throttle.h void controld_configure_throttle(GHashTable *options); options 303 daemons/controld/controld_timers.c controld_configure_fsa_timers(GHashTable *options) options 308 daemons/controld/controld_timers.c value = g_hash_table_lookup(options, PCMK_OPT_DC_DEADTIME); options 312 daemons/controld/controld_timers.c value = g_hash_table_lookup(options, PCMK_OPT_JOIN_INTEGRATION_TIMEOUT); options 316 daemons/controld/controld_timers.c value = g_hash_table_lookup(options, PCMK_OPT_JOIN_FINALIZATION_TIMEOUT); options 320 daemons/controld/controld_timers.c value = g_hash_table_lookup(options, PCMK_OPT_SHUTDOWN_ESCALATION); options 326 daemons/controld/controld_timers.c value = g_hash_table_lookup(options, PCMK_OPT_TRANSITION_DELAY); options 330 daemons/controld/controld_timers.c value = g_hash_table_lookup(options, PCMK_OPT_CLUSTER_RECHECK_INTERVAL); options 19 daemons/controld/controld_timers.h void controld_configure_fsa_timers(GHashTable *options); options 33 daemons/controld/pacemaker-controld.h void controld_configure_election(GHashTable *options); options 55 daemons/execd/cts-exec-helper.c } options; options 60 daemons/execd/cts-exec-helper.c &options.interval_ms) == pcmk_rc_ok; options 66 daemons/execd/cts-exec-helper.c options.exec_call_opts = lrmd_opt_notify_orig_only; options 68 daemons/execd/cts-exec-helper.c options.exec_call_opts = lrmd_opt_notify_changes_only; options 83 daemons/execd/cts-exec-helper.c options.params = lrmd_key_value_add(options.params, key, val); options 92 daemons/execd/cts-exec-helper.c { "api-call", 'c', 0, G_OPTION_ARG_STRING, &options.api_call, options 96 daemons/execd/cts-exec-helper.c { "is-running", 'R', 0, G_OPTION_ARG_NONE, &options.is_running, options 100 daemons/execd/cts-exec-helper.c { "listen", 'l', 0, G_OPTION_ARG_STRING, &options.listen, options 104 daemons/execd/cts-exec-helper.c { "no-wait", 'w', 0, G_OPTION_ARG_NONE, &options.no_wait, options 116 daemons/execd/cts-exec-helper.c { "tls", 'S', 0, G_OPTION_ARG_NONE, &options.use_tls, options 124 daemons/execd/cts-exec-helper.c { "action", 'a', 0, G_OPTION_ARG_STRING, &options.action, options 127 daemons/execd/cts-exec-helper.c { "cancel-call-id", 'x', 0, G_OPTION_ARG_INT, &options.cancel_call_id, options 130 daemons/execd/cts-exec-helper.c { "class", 'C', 0, G_OPTION_ARG_STRING, &options.class, options 142 daemons/execd/cts-exec-helper.c { "provider", 'P', 0, G_OPTION_ARG_STRING, &options.provider, options 145 daemons/execd/cts-exec-helper.c { "rsc-id", 'r', 0, G_OPTION_ARG_STRING, &options.rsc_id, options 148 daemons/execd/cts-exec-helper.c { "start-delay", 's', 0, G_OPTION_ARG_INT, &options.start_delay, options 151 daemons/execd/cts-exec-helper.c { "timeout", 't', 0, G_OPTION_ARG_INT, &options.timeout, options 154 daemons/execd/cts-exec-helper.c { "type", 'T', 0, G_OPTION_ARG_STRING, &options.type, options 173 daemons/execd/cts-exec-helper.c if (!options.quiet) { \ options 197 daemons/execd/cts-exec-helper.c if (options.listen) { options 198 daemons/execd/cts-exec-helper.c if (pcmk__str_eq(options.listen, event_buf_v0, pcmk__str_casei)) { options 213 daemons/execd/cts-exec-helper.c if (!options.listen) { options 274 daemons/execd/cts-exec-helper.c if (!options.no_connect) { options 283 daemons/execd/cts-exec-helper.c if (options.timeout) { options 284 daemons/execd/cts-exec-helper.c g_timeout_add(options.timeout, timeout_err, NULL); options 287 daemons/execd/cts-exec-helper.c if (!options.api_call) { options 291 daemons/execd/cts-exec-helper.c if (pcmk__str_eq(options.api_call, "exec", pcmk__str_casei)) { options 293 daemons/execd/cts-exec-helper.c options.rsc_id, options 294 daemons/execd/cts-exec-helper.c options.action, options 296 daemons/execd/cts-exec-helper.c options.interval_ms, options 297 daemons/execd/cts-exec-helper.c options.timeout, options 298 daemons/execd/cts-exec-helper.c options.start_delay, options 299 daemons/execd/cts-exec-helper.c options.exec_call_opts, options 300 daemons/execd/cts-exec-helper.c options.params); options 307 daemons/execd/cts-exec-helper.c } else if (pcmk__str_eq(options.api_call, "register_rsc", pcmk__str_casei)) { options 309 daemons/execd/cts-exec-helper.c options.rsc_id, options 310 daemons/execd/cts-exec-helper.c options.class, options.provider, options.type, 0); options 311 daemons/execd/cts-exec-helper.c } else if (pcmk__str_eq(options.api_call, "get_rsc_info", pcmk__str_casei)) { options 314 daemons/execd/cts-exec-helper.c rsc_info = lrmd_conn->cmds->get_rsc_info(lrmd_conn, options.rsc_id, 0); options 326 daemons/execd/cts-exec-helper.c } else if (pcmk__str_eq(options.api_call, "unregister_rsc", pcmk__str_casei)) { options 327 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->unregister_rsc(lrmd_conn, options.rsc_id, 0); options 328 daemons/execd/cts-exec-helper.c } else if (pcmk__str_eq(options.api_call, "cancel", pcmk__str_casei)) { options 329 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->cancel(lrmd_conn, options.rsc_id, options.action, options 330 daemons/execd/cts-exec-helper.c options.interval_ms); options 331 daemons/execd/cts-exec-helper.c } else if (pcmk__str_eq(options.api_call, "metadata", pcmk__str_casei)) { options 335 daemons/execd/cts-exec-helper.c options.class, options 336 daemons/execd/cts-exec-helper.c options.provider, options.type, &output, 0); options 341 daemons/execd/cts-exec-helper.c } else if (pcmk__str_eq(options.api_call, "list_agents", pcmk__str_casei)) { options 345 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->list_agents(lrmd_conn, &list, options.class, options.provider); options 358 daemons/execd/cts-exec-helper.c } else if (pcmk__str_eq(options.api_call, "list_ocf_providers", pcmk__str_casei)) { options 362 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->list_ocf_providers(lrmd_conn, options.type, &list); options 376 daemons/execd/cts-exec-helper.c } else if (pcmk__str_eq(options.api_call, "list_standards", pcmk__str_casei)) { options 394 daemons/execd/cts-exec-helper.c } else if (pcmk__str_eq(options.api_call, "get_recurring_ops", pcmk__str_casei)) { options 397 daemons/execd/cts-exec-helper.c rc = lrmd_conn->cmds->get_recurring_ops(lrmd_conn, options.rsc_id, 0, 0, options 410 daemons/execd/cts-exec-helper.c } else if (options.api_call) { options 411 daemons/execd/cts-exec-helper.c print_result("API-CALL FAILURE unknown action '%s'", options.action); options 417 daemons/execd/cts-exec-helper.c options.api_call, rc); options 421 daemons/execd/cts-exec-helper.c if (options.api_call && rc == pcmk_ok) { options 422 daemons/execd/cts-exec-helper.c print_result("API-CALL SUCCESSFUL for '%s'", options.api_call); options 423 daemons/execd/cts-exec-helper.c if (!options.listen) { options 428 daemons/execd/cts-exec-helper.c if (options.no_wait) { options 455 daemons/execd/cts-exec-helper.c if (options.params != NULL) { options 482 daemons/execd/cts-exec-helper.c rsc = pe_find_resource_with_flags(scheduler->resources, options.rsc_id, options 497 daemons/execd/cts-exec-helper.c options.params = lrmd_key_value_add(options.params, key, value); options 509 daemons/execd/cts-exec-helper.c options.params = lrmd_key_value_add(options.params, crm_name, value); options 563 daemons/execd/cts-exec-helper.c if (!options.listen && pcmk__strcase_any_of(options.api_call, "metadata", "list_agents", options 565 daemons/execd/cts-exec-helper.c options.no_connect = TRUE; options 568 daemons/execd/cts-exec-helper.c if (options.is_running) { options 571 daemons/execd/cts-exec-helper.c if (options.rsc_id == NULL) { options 578 daemons/execd/cts-exec-helper.c options.interval_ms = 0; options 579 daemons/execd/cts-exec-helper.c if (options.timeout == 0) { options 580 daemons/execd/cts-exec-helper.c options.timeout = 30000; options 591 daemons/execd/cts-exec-helper.c options.api_call = "exec"; options 592 daemons/execd/cts-exec-helper.c options.action = PCMK_ACTION_MONITOR; options 593 daemons/execd/cts-exec-helper.c options.exec_call_opts = lrmd_opt_notify_orig_only; options 596 daemons/execd/cts-exec-helper.c if (!options.api_call && !options.listen) { options 604 daemons/execd/cts-exec-helper.c if (options.use_tls) { options 50 daemons/execd/pacemaker-execd.c } options; options 404 daemons/execd/pacemaker-execd.c &options.log_files, "Send logs to the additional named logfile", NULL }, options 408 daemons/execd/pacemaker-execd.c { "port", 'p', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, &options.port, options 485 daemons/execd/pacemaker-execd.c if (options.log_files != NULL) { options 486 daemons/execd/pacemaker-execd.c for (gchar **fname = options.log_files; *fname != NULL; fname++) { options 519 daemons/execd/pacemaker-execd.c if (options.port != NULL) { options 520 daemons/execd/pacemaker-execd.c pcmk__set_env_option(PCMK__ENV_REMOTE_PORT, options.port, false); options 571 daemons/execd/pacemaker-execd.c g_strfreev(options.log_files); options 573 daemons/execd/pacemaker-execd.c g_free(options.port); options 54 daemons/fenced/cts-fence-helper.c } options = { options 61 daemons/fenced/cts-fence-helper.c options.mode = test_api_mainloop; options 63 daemons/fenced/cts-fence-helper.c options.mode = test_api_sanity; options 65 daemons/fenced/cts-fence-helper.c options.mode = test_passive; options 672 daemons/fenced/cts-fence-helper.c switch (options.mode) { options 83 daemons/fenced/fenced_commands.c int options; options 365 daemons/fenced/fenced_commands.c crm_element_value_int(msg, PCMK__XA_ST_CALLOPT, &(cmd->options)); options 2670 daemons/fenced/fenced_commands.c stonith_send_reply(reply, cmd->options, cmd->origin, client); options 2936 daemons/fenced/fenced_commands.c if (pcmk_is_set(cmd->options, st_opt_cs_nodeid)) { options 3047 daemons/fenced/fenced_commands.c crm_xml_add_int(reply, PCMK__XA_ST_CALLOPT, cmd->options); options 476 daemons/fenced/fenced_history.c const char *remote_peer, int options) options 484 daemons/fenced/fenced_history.c if (target && (options & st_opt_cs_nodeid)) { options 498 daemons/fenced/fenced_history.c if (options & st_opt_cleanup) { options 505 daemons/fenced/fenced_history.c } else if (options & st_opt_broadcast) { options 1383 daemons/fenced/fenced_remote.c find_best_peer(const char *device, remote_fencing_op_t * op, enum find_best_peer_options options) options 1386 daemons/fenced/fenced_remote.c gboolean verified_devices_only = (options & FIND_PEER_VERIFIED_ONLY) ? TRUE : FALSE; options 1397 daemons/fenced/fenced_remote.c pcmk__plural_s(peer->ndevices), peer->tried, options); options 1398 daemons/fenced/fenced_remote.c if ((options & FIND_PEER_SKIP_TARGET) && pcmk__str_eq(peer->host, op->target, pcmk__str_casei)) { options 1401 daemons/fenced/fenced_remote.c if ((options & FIND_PEER_TARGET_ONLY) && !pcmk__str_eq(peer->host, op->target, pcmk__str_casei)) { options 65 daemons/fenced/pacemaker-fenced.c } options; options 450 daemons/fenced/pacemaker-fenced.c options.no_cib_connect = true; options 517 daemons/fenced/pacemaker-fenced.c &options.log_files, N_("Send logs to the additional named logfile"), NULL }, options 581 daemons/fenced/pacemaker-fenced.c pcmk__add_logfiles(options.log_files, out); options 641 daemons/fenced/pacemaker-fenced.c if (!options.no_cib_connect) { options 665 daemons/fenced/pacemaker-fenced.c g_strfreev(options.log_files); options 271 daemons/fenced/pacemaker-fenced.h const char *remote_peer, int options); options 43 daemons/pacemakerd/pacemakerd.c } options; options 100 daemons/pacemakerd/pacemakerd.c options.standby = TRUE; options 106 daemons/pacemakerd/pacemakerd.c { "features", 'F', 0, G_OPTION_ARG_NONE, &options.features, options 109 daemons/pacemakerd/pacemakerd.c { "foreground", 'f', 0, G_OPTION_ARG_NONE, &options.foreground, options 115 daemons/pacemakerd/pacemakerd.c { "shutdown", 'S', 0, G_OPTION_ARG_NONE, &options.shutdown, options 308 daemons/pacemakerd/pacemakerd.c if (options.features) { options 322 daemons/pacemakerd/pacemakerd.c if (options.shutdown) { options 345 daemons/pacemakerd/pacemakerd.c if (options.shutdown) { options 31 daemons/schedulerd/pacemaker-schedulerd.c } options; options 67 daemons/schedulerd/pacemaker-schedulerd.c { G_OPTION_REMAINING, 0, G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING_ARRAY, &options.remainder, options 110 daemons/schedulerd/pacemaker-schedulerd.c if (options.remainder) { options 111 daemons/schedulerd/pacemaker-schedulerd.c if (g_strv_length(options.remainder) == 1 && options 112 daemons/schedulerd/pacemaker-schedulerd.c pcmk__str_eq("metadata", options.remainder[0], pcmk__str_casei)) { options 168 daemons/schedulerd/pacemaker-schedulerd.c g_strfreev(options.remainder); options 83 include/crm/cib/internal.h gboolean cib_read_config(GHashTable * options, xmlNode * current_cib); options 190 include/crm/cib/internal.h int cib_process_query(const char *op, int options, const char *section, xmlNode * req, options 194 include/crm/cib/internal.h int cib_process_erase(const char *op, int options, const char *section, xmlNode * req, options 198 include/crm/cib/internal.h int cib_process_bump(const char *op, int options, const char *section, xmlNode * req, options 202 include/crm/cib/internal.h int cib_process_replace(const char *op, int options, const char *section, xmlNode * req, options 206 include/crm/cib/internal.h int cib_process_create(const char *op, int options, const char *section, xmlNode * req, options 210 include/crm/cib/internal.h int cib_process_modify(const char *op, int options, const char *section, xmlNode * req, options 214 include/crm/cib/internal.h int cib_process_delete(const char *op, int options, const char *section, xmlNode * req, options 218 include/crm/cib/internal.h int cib_process_diff(const char *op, int options, const char *section, xmlNode * req, options 222 include/crm/cib/internal.h int cib_process_upgrade(const char *op, int options, const char *section, xmlNode * req, options 248 include/crm/cib/internal.h int cib_process_xpath(const char *op, int options, const char *section, options 307 include/crm/cib/internal.h int cib__delete_node_attr(pcmk__output_t *out, cib_t *cib, int options, options 45 include/crm/cib/util.h int delete_attr_delegate(cib_t * the_cib, int options, options 51 include/crm/cib/util_compat.h const char *cib_pref(GHashTable * options, const char *name); options 72 include/crm/common/ipc_attrd_internal.h uint32_t options); options 88 include/crm/common/ipc_attrd_internal.h uint32_t options); options 124 include/crm/common/ipc_attrd_internal.h uint32_t options); options 166 include/crm/common/ipc_attrd_internal.h const char *user_name, uint32_t options); options 193 include/crm/common/ipc_attrd_internal.h const char *user_name, uint32_t options); options 91 include/crm/common/options_internal.h const char *pcmk__cluster_option(GHashTable *options, const char *name); options 107 include/crm/common/options_internal.h void pcmk__validate_cluster_options(GHashTable *options); options 138 include/crm/common/output_internal.h GOptionEntry *options; options 600 include/crm/common/output_internal.h const GOptionEntry *options); options 295 include/crm/common/resources.h void (*print)(pcmk_resource_t *rsc, const char *pre_text, long options, options 169 include/crm/common/xml_internal.h int depth, uint32_t options); options 25 include/crm/common/xml_io_internal.h void pcmk__xml_string(const xmlNode *data, uint32_t options, GString *buffer, options 271 include/crm/lrmd.h enum lrmd_call_options options); options 283 include/crm/lrmd.h enum lrmd_call_options options); options 297 include/crm/lrmd.h enum lrmd_call_options options, GList **output); options 314 include/crm/lrmd.h enum lrmd_call_options options); options 351 include/crm/lrmd.h int start_delay, enum lrmd_call_options options, options 398 include/crm/lrmd.h char **output, enum lrmd_call_options options); options 485 include/crm/lrmd.h char **output, enum lrmd_call_options options, options 91 include/crm/pengine/common_compat.h const char *pe_pref(GHashTable * options, const char *name); options 78 include/crm/pengine/internal.h void native_print(pcmk_resource_t *rsc, const char *pre_text, long options, options 82 include/crm/pengine/internal.h void group_print(pcmk_resource_t *rsc, const char *pre_text, long options, options 86 include/crm/pengine/internal.h void clone_print(pcmk_resource_t *rsc, const char *pre_text, long options, options 90 include/crm/pengine/internal.h void pe__print_bundle(pcmk_resource_t *rsc, const char *pre_text, long options, options 321 include/crm/pengine/internal.h void print_rscs_brief(GList *rsc_list, const char * pre_text, long options, options 323 include/crm/pengine/internal.h int pe__rscs_brief_output(pcmk__output_t *out, GList *rsc_list, unsigned int options); options 332 include/crm/pengine/internal.h const pcmk_node_t *node, long options, void *print_data); options 335 include/crm/pengine/internal.h unsigned int options); options 338 include/crm/pengine/internal.h unsigned int options); options 185 include/crm/stonith-ng.h int (*remove_device)(stonith_t *st, int options, const char *name); options 203 include/crm/stonith-ng.h int (*register_device)(stonith_t *st, int options, const char *id, options 218 include/crm/stonith-ng.h int (*remove_level)(stonith_t *st, int options, const char *node, options 233 include/crm/stonith-ng.h int (*register_level)(stonith_t *st, int options, const char *node, options 424 include/crm/stonith-ng.h int options, void *user_data, options 462 include/crm/stonith-ng.h int (*remove_level_full)(stonith_t *st, int options, options 489 include/crm/stonith-ng.h int (*register_level_full)(stonith_t *st, int options, options 371 lib/cib/cib_attrs.c cib__delete_node_attr(pcmk__output_t *out, cib_t *cib, int options, const char *section, options 401 lib/cib/cib_attrs.c NULL, options, user_name); options 403 lib/cib/cib_attrs.c if (!pcmk_is_set(options, cib_sync_call) && (cib->variant != cib_file) options 511 lib/cib/cib_attrs.c delete_attr_delegate(cib_t *cib, int options, const char *section, const char *node_uuid, options 524 lib/cib/cib_attrs.c rc = cib__delete_node_attr(out, cib, options, section, node_uuid, set_type, options 54 lib/cib/cib_file.c static int cib_file_process_commit_transaction(const char *op, int options, options 1153 lib/cib/cib_file.c cib_file_process_commit_transaction(const char *op, int options, options 168 lib/cib/cib_ops.c cib_process_query(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, 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 194 lib/cib/cib_ops.c } else if (options & cib_no_children) { options 241 lib/cib/cib_ops.c cib_process_erase(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, options 260 lib/cib/cib_ops.c cib_process_upgrade(const char *op, int options, const char *section, xmlNode * req, options 274 lib/cib/cib_ops.c !pcmk_is_set(options, cib_verbose)); options 289 lib/cib/cib_ops.c cib_process_bump(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, options 304 lib/cib/cib_ops.c cib_process_replace(const char *op, int options, const char *section, xmlNode * req, options 313 lib/cib/cib_ops.c if (options & cib_xpath) { options 314 lib/cib/cib_ops.c return cib_process_xpath(op, options, section, req, input, options 429 lib/cib/cib_ops.c cib_process_delete(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, options 436 lib/cib/cib_ops.c if (options & cib_xpath) { options 437 lib/cib/cib_ops.c return cib_process_xpath(op, options, section, req, input, options 457 lib/cib/cib_ops.c cib_process_modify(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, options 465 lib/cib/cib_ops.c if (options & cib_xpath) { options 466 lib/cib/cib_ops.c return cib_process_xpath(op, options, section, req, input, options 494 lib/cib/cib_ops.c if (pcmk_is_set(options, cib_score_update)) { options 499 lib/cib/cib_ops.c if (options & cib_can_create) { options 507 lib/cib/cib_ops.c if (pcmk_is_set(options, cib_mixed_update)) { options 602 lib/cib/cib_ops.c cib_process_create(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, options 629 lib/cib/cib_ops.c return cib_process_modify(op, options, section, req, input, existing_cib, result_cib, options 669 lib/cib/cib_ops.c cib_process_diff(const char *op, int options, const char *section, xmlNode * req, xmlNode * input, options 680 lib/cib/cib_ops.c (pcmk_is_set(options, cib_force_diff)? " (global update)" : "")); options 763 lib/cib/cib_ops.c cib_process_xpath(const char *op, int options, const char *section, options 798 lib/cib/cib_ops.c if (pcmk_is_set(options, cib_multiple) options 824 lib/cib/cib_ops.c if ((options & cib_multiple) == 0) { options 831 lib/cib/cib_ops.c if (pcmk_is_set(options, cib_score_update)) { options 837 lib/cib/cib_ops.c } else if ((options & cib_multiple) == 0) { options 847 lib/cib/cib_ops.c if (options & cib_no_children) { options 857 lib/cib/cib_ops.c } else if (options & cib_xpath_address) { options 901 lib/cib/cib_ops.c if ((options & cib_multiple) == 0) { options 271 lib/cib/cib_utils.c GHashTable *options = pcmk__strkey_table(free, free); options 273 lib/cib/cib_utils.c cib_read_config(options, xml); options 274 lib/cib/cib_utils.c value = pcmk__cluster_option(options, PCMK_OPT_ENABLE_ACL); options 276 lib/cib/cib_utils.c g_hash_table_destroy(options); options 855 lib/cib/cib_utils.c cib_read_config(GHashTable * options, xmlNode * current_cib) options 860 lib/cib/cib_utils.c if (options == NULL || current_cib == NULL) { options 866 lib/cib/cib_utils.c g_hash_table_remove_all(options); options 871 lib/cib/cib_utils.c NULL, options, PCMK_VALUE_CIB_BOOTSTRAP_OPTIONS, TRUE, options 875 lib/cib/cib_utils.c pcmk__validate_cluster_options(options); options 1099 lib/cib/cib_utils.c cib_pref(GHashTable * options, const char *name) options 1101 lib/cib/cib_utils.c return pcmk__cluster_option(options, name); options 181 lib/common/ipc_attrd.c uint32_t options) options 210 lib/common/ipc_attrd.c pcmk_is_set(options, pcmk__node_attr_remote)); options 220 lib/common/ipc_attrd.c uint32_t options) options 235 lib/common/ipc_attrd.c options &= ~pcmk__node_attr_delay; options 236 lib/common/ipc_attrd.c options |= pcmk__node_attr_value; options 238 lib/common/ipc_attrd.c return pcmk__attrd_api_update(api, node, name, NULL, NULL, NULL, NULL, options); options 271 lib/common/ipc_attrd.c uint32_t options) options 281 lib/common/ipc_attrd.c if (pcmk_is_set(options, pcmk__node_attr_query_all)) { options 332 lib/common/ipc_attrd.c add_op_attr(xmlNode *op, uint32_t options) options 334 lib/common/ipc_attrd.c if (pcmk_all_flags_set(options, pcmk__node_attr_value | pcmk__node_attr_delay)) { options 336 lib/common/ipc_attrd.c } else if (pcmk_is_set(options, pcmk__node_attr_value)) { options 338 lib/common/ipc_attrd.c } else if (pcmk_is_set(options, pcmk__node_attr_delay)) { options 345 lib/common/ipc_attrd.c const char *dampen, const char *set, uint32_t options) options 347 lib/common/ipc_attrd.c if (pcmk_is_set(options, pcmk__node_attr_pattern)) { options 353 lib/common/ipc_attrd.c if (pcmk_is_set(options, pcmk__node_attr_utilization)) { options 359 lib/common/ipc_attrd.c add_op_attr(op, options); options 366 lib/common/ipc_attrd.c pcmk_is_set(options, pcmk__node_attr_remote)); options 368 lib/common/ipc_attrd.c pcmk_is_set(options, pcmk__node_attr_private)); options 370 lib/common/ipc_attrd.c if (pcmk_is_set(options, pcmk__node_attr_sync_local)) { options 372 lib/common/ipc_attrd.c } else if (pcmk_is_set(options, pcmk__node_attr_sync_cluster)) { options 380 lib/common/ipc_attrd.c const char *user_name, uint32_t options) options 401 lib/common/ipc_attrd.c populate_update_op(request, node, name, value, dampen, set, options); options 412 lib/common/ipc_attrd.c uint32_t options) options 453 lib/common/ipc_attrd.c add_op_attr(request, options); options 469 lib/common/ipc_attrd.c set, options); options 472 lib/common/ipc_attrd.c dampen, set, user_name, options); options 1412 lib/common/options.c pcmk__cluster_option(GHashTable *options, const char *name) options 1418 lib/common/options.c return cluster_option_value(options, option); options 1558 lib/common/options.c pcmk__validate_cluster_options(GHashTable *options) options 1563 lib/common/options.c cluster_option_value(options, option); options 129 lib/common/output.c const GOptionEntry *options) options 144 lib/common/output.c if (options != NULL && group != NULL) { options 145 lib/common/output.c g_option_group_add_entries(group, options); options 161 lib/common/output.c pcmk__register_format(group, entry->name, entry->create, entry->options); options 81 lib/common/patchset_display.c const xmlNode *data, int depth, uint32_t options) options 87 lib/common/patchset_display.c options &= ~pcmk__xml_fmt_diff_short; options 89 lib/common/patchset_display.c if (pcmk_is_set(options, pcmk__xml_fmt_diff_plus)) { options 96 lib/common/patchset_display.c if (pcmk_is_set(options, pcmk__xml_fmt_diff_short)) { options 103 lib/common/patchset_display.c depth + 1, options); options 110 lib/common/patchset_display.c options options 133 lib/common/patchset_display.c uint32_t options) options 150 lib/common/patchset_display.c options options 166 lib/common/patchset_display.c options options 21 lib/common/xml_display.c uint32_t options); options 60 lib/common/xml_display.c uint32_t options) options 62 lib/common/xml_display.c if (pcmk_is_set(options, pcmk__xml_fmt_open)) { options 63 lib/common/xml_display.c int width = pcmk_is_set(options, pcmk__xml_fmt_pretty)? (2 * depth) : 0; options 92 lib/common/xml_display.c const xmlNode *data, int depth, uint32_t options) options 94 lib/common/xml_display.c int spaces = pcmk_is_set(options, pcmk__xml_fmt_pretty)? (2 * depth) : 0; options 97 lib/common/xml_display.c if (pcmk_is_set(options, pcmk__xml_fmt_open)) { options 119 lib/common/xml_display.c if (pcmk_any_flags_set(options, options 142 lib/common/xml_display.c && pcmk_is_set(options, pcmk__xml_fmt_children)) { options 158 lib/common/xml_display.c if (pcmk_is_set(options, pcmk__xml_fmt_children)) { options 163 lib/common/xml_display.c options options 170 lib/common/xml_display.c if (pcmk_is_set(options, pcmk__xml_fmt_close)) { options 202 lib/common/xml_display.c const xmlNode *data, int depth, uint32_t options) options 206 lib/common/xml_display.c return show_xml_comment(out, data, depth, options); options 208 lib/common/xml_display.c return show_xml_element(out, buffer, prefix, data, depth, options); options 230 lib/common/xml_display.c int depth, uint32_t options) options 246 lib/common/xml_display.c rc = show_xml_node(out, buffer, prefix, data, depth, options); options 267 lib/common/xml_display.c uint32_t options) options 279 lib/common/xml_display.c options options 287 lib/common/xml_display.c bool pretty = pcmk_is_set(options, pcmk__xml_fmt_pretty); options 297 lib/common/xml_display.c options|pcmk__xml_fmt_open); options 339 lib/common/xml_display.c options); options 345 lib/common/xml_display.c options|pcmk__xml_fmt_close); options 352 lib/common/xml_display.c temp_rc = show_xml_changes_recursive(out, child, depth + 1, options); options 414 lib/common/xml_display.c uint32_t options = 0; options 445 lib/common/xml_display.c options |= pcmk__xml_fmt_filtered; options 448 lib/common/xml_display.c options |= pcmk__xml_fmt_pretty; options 451 lib/common/xml_display.c options |= pcmk__xml_fmt_open; options 454 lib/common/xml_display.c options |= pcmk__xml_fmt_children; options 457 lib/common/xml_display.c options |= pcmk__xml_fmt_close; options 460 lib/common/xml_display.c options |= pcmk__xml_fmt_text; options 463 lib/common/xml_display.c options |= pcmk__xml_fmt_diff_plus; options 466 lib/common/xml_display.c options |= pcmk__xml_fmt_diff_minus; options 469 lib/common/xml_display.c options |= pcmk__xml_fmt_diff_short; options 475 lib/common/xml_display.c show_xml_changes_recursive(out, data, depth, options); options 479 lib/common/xml_display.c if (pcmk_is_set(options, pcmk__xml_fmt_pretty) options 483 lib/common/xml_display.c if (pcmk_is_set(options, pcmk__xml_fmt_diff_plus)) { options 487 lib/common/xml_display.c } else if (pcmk_is_set(options, pcmk__xml_fmt_diff_minus)) { options 493 lib/common/xml_display.c if (pcmk_is_set(options, pcmk__xml_fmt_diff_short) options 496 lib/common/xml_display.c if (!pcmk_any_flags_set(options, options 507 lib/common/xml_display.c depth + 1, options); options 512 lib/common/xml_display.c options options 292 lib/common/xml_io.c dump_xml_element(const xmlNode *data, uint32_t options, GString *buffer, options 295 lib/common/xml_io.c bool pretty = pcmk_is_set(options, pcmk__xml_fmt_pretty); options 296 lib/common/xml_io.c bool filtered = pcmk_is_set(options, pcmk__xml_fmt_filtered); options 327 lib/common/xml_io.c pcmk__xml_string(child, options, buffer, depth + 1); options 352 lib/common/xml_io.c dump_xml_text(const xmlNode *data, uint32_t options, GString *buffer, options 355 lib/common/xml_io.c bool pretty = pcmk_is_set(options, pcmk__xml_fmt_pretty); options 387 lib/common/xml_io.c dump_xml_cdata(const xmlNode *data, uint32_t options, GString *buffer, options 390 lib/common/xml_io.c bool pretty = pcmk_is_set(options, pcmk__xml_fmt_pretty); options 415 lib/common/xml_io.c dump_xml_comment(const xmlNode *data, uint32_t options, GString *buffer, options 418 lib/common/xml_io.c bool pretty = pcmk_is_set(options, pcmk__xml_fmt_pretty); options 488 lib/common/xml_io.c pcmk__xml_string(const xmlNode *data, uint32_t options, GString *buffer, options 502 lib/common/xml_io.c dump_xml_element(data, options, buffer, depth); options 505 lib/common/xml_io.c if (pcmk_is_set(options, pcmk__xml_fmt_text)) { options 506 lib/common/xml_io.c dump_xml_text(data, options, buffer, depth); options 510 lib/common/xml_io.c dump_xml_comment(data, options, buffer, depth); options 513 lib/common/xml_io.c dump_xml_cdata(data, options, buffer, depth); options 364 lib/fencing/st_client.c stonith_api_remove_level_full(stonith_t *st, int options, options 388 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_LEVEL_DEL, data, NULL, options, 0); options 395 lib/fencing/st_client.c stonith_api_remove_level(stonith_t * st, int options, const char *node, int level) options 397 lib/fencing/st_client.c return stonith_api_remove_level_full(st, options, node, options 455 lib/fencing/st_client.c stonith_api_register_level_full(stonith_t *st, int options, const char *node, options 465 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_LEVEL_ADD, data, NULL, options, 0); options 472 lib/fencing/st_client.c stonith_api_register_level(stonith_t * st, int options, const char *node, int level, options 475 lib/fencing/st_client.c return stonith_api_register_level_full(st, options, node, NULL, NULL, NULL, options 1311 lib/fencing/st_client.c stonith_api_add_callback(stonith_t * stonith, int call_id, int timeout, int options, options 1326 lib/fencing/st_client.c if (!(options & st_opt_report_only_success)) { options 1342 lib/fencing/st_client.c blob->only_success = (options & st_opt_report_only_success) ? TRUE : FALSE; options 1345 lib/fencing/st_client.c blob->allow_timeout_updates = (options & st_opt_timeout_updates) ? TRUE : FALSE; options 541 lib/lrmd/lrmd_client.c enum lrmd_call_options options) options 551 lib/lrmd/lrmd_client.c crm_xml_add_int(op_msg, PCMK__XA_LRMD_CALLOPT, options); options 560 lib/lrmd/lrmd_client.c op, (long)options, options); options 887 lib/lrmd/lrmd_client.c enum lrmd_call_options options, gboolean expect_reply) options 907 lib/lrmd/lrmd_client.c op_msg = lrmd_create_op(native->token, op, data, timeout, options); options 1766 lib/lrmd/lrmd_client.c const char *provider, const char *type, enum lrmd_call_options options) options 1786 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_RSC_REG, data, NULL, 0, options, TRUE); options 1793 lib/lrmd/lrmd_client.c lrmd_api_unregister_rsc(lrmd_t * lrmd, const char *rsc_id, enum lrmd_call_options options) options 1800 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_RSC_UNREG, data, NULL, 0, options, TRUE); options 1840 lib/lrmd/lrmd_client.c lrmd_api_get_rsc_info(lrmd_t * lrmd, const char *rsc_id, enum lrmd_call_options options) options 1851 lib/lrmd/lrmd_client.c lrmd_send_command(lrmd, LRMD_OP_RSC_INFO, data, &output, 0, options, TRUE); options 1890 lib/lrmd/lrmd_client.c enum lrmd_call_options options, GList **output) options 1908 lib/lrmd/lrmd_client.c timeout_ms, options, TRUE); options 2017 lib/lrmd/lrmd_client.c enum lrmd_call_options options) options 2020 lib/lrmd/lrmd_client.c output, options, NULL); options 2026 lib/lrmd/lrmd_client.c char **output, enum lrmd_call_options options, options 2085 lib/lrmd/lrmd_client.c enum lrmd_call_options options, lrmd_key_value_t * params) options 2104 lib/lrmd/lrmd_client.c rc = lrmd_send_command(lrmd, LRMD_OP_RSC_EXEC, data, NULL, timeout, options, TRUE); options 33 lib/pengine/bundle.c char *options; options 515 lib/pengine/bundle.c if (mount->options != NULL) { options 516 lib/pengine/bundle.c pcmk__g_strcat(buffer, ":", mount->options, NULL); options 525 lib/pengine/bundle.c (mount->options != NULL)? "," : "", options 526 lib/pengine/bundle.c pcmk__s(mount->options, ""), options 863 lib/pengine/bundle.c const char *target, const char *options, uint32_t flags) options 870 lib/pengine/bundle.c mount->options = pcmk__str_copy(options); options 880 lib/pengine/bundle.c free(mount->options); options 1120 lib/pengine/bundle.c const char *options = crm_element_value(xml_child, PCMK_XA_OPTIONS); options 1130 lib/pengine/bundle.c mount_add(bundle_data, source, target, options, flags); options 1425 lib/pengine/bundle.c print_rsc_in_list(pcmk_resource_t *rsc, const char *pre_text, long options, options 1429 lib/pengine/bundle.c if (options & pe_print_html) { options 1432 lib/pengine/bundle.c rsc->fns->print(rsc, pre_text, options, print_data); options 1433 lib/pengine/bundle.c if (options & pe_print_html) { options 1444 lib/pengine/bundle.c bundle_print_xml(pcmk_resource_t *rsc, const char *pre_text, long options, options 1477 lib/pengine/bundle.c print_rsc_in_list(replica->ip, child_text, options, print_data); options 1478 lib/pengine/bundle.c print_rsc_in_list(replica->child, child_text, options, print_data); options 1479 lib/pengine/bundle.c print_rsc_in_list(replica->container, child_text, options, print_data); options 1480 lib/pengine/bundle.c print_rsc_in_list(replica->remote, child_text, options, print_data); options 1905 lib/pengine/bundle.c long options, void *print_data) options 1930 lib/pengine/bundle.c common_print(rsc, pre_text, buffer, node, options, print_data); options 1938 lib/pengine/bundle.c pe__print_bundle(pcmk_resource_t *rsc, const char *pre_text, long options, options 1945 lib/pengine/bundle.c if (options & pe_print_xml) { options 1946 lib/pengine/bundle.c bundle_print_xml(rsc, pre_text, options, print_data); options 1961 lib/pengine/bundle.c if (options & pe_print_html) { options 1971 lib/pengine/bundle.c if (options & pe_print_html) { options 1975 lib/pengine/bundle.c if (pcmk_is_set(options, pe_print_implicit)) { options 1980 lib/pengine/bundle.c if (options & pe_print_html) { options 1983 lib/pengine/bundle.c print_rsc_in_list(replica->ip, child_text, options, print_data); options 1984 lib/pengine/bundle.c print_rsc_in_list(replica->container, child_text, options, print_data); options 1985 lib/pengine/bundle.c print_rsc_in_list(replica->remote, child_text, options, print_data); options 1986 lib/pengine/bundle.c print_rsc_in_list(replica->child, child_text, options, print_data); options 1987 lib/pengine/bundle.c if (options & pe_print_html) { options 1992 lib/pengine/bundle.c print_bundle_replica(replica, child_text, options, print_data); options 1996 lib/pengine/bundle.c if (options & pe_print_html) { options 2000 lib/pengine/bundle.c if (options & pe_print_html) { options 493 lib/pengine/clone.c const char *suffix, long options, void *print_data) options 500 lib/pengine/clone.c if (options & pe_print_html) { options 505 lib/pengine/clone.c if (options & pe_print_html) { options 508 lib/pengine/clone.c } else if (options & pe_print_suppres_nl) { options 510 lib/pengine/clone.c } else if ((options & pe_print_printf) || (options & pe_print_ncurses)) { options 553 lib/pengine/clone.c clone_print_xml(pcmk_resource_t *rsc, const char *pre_text, long options, options 580 lib/pengine/clone.c child_rsc->fns->print(child_rsc, child_text, options, print_data); options 623 lib/pengine/clone.c clone_print(pcmk_resource_t *rsc, const char *pre_text, long options, options 641 lib/pengine/clone.c if (options & pe_print_xml) { options 642 lib/pengine/clone.c clone_print_xml(rsc, pre_text, options, print_data); options 657 lib/pengine/clone.c if (options & pe_print_html) { options 660 lib/pengine/clone.c } else if ((options & pe_print_log) == 0) { options 669 lib/pengine/clone.c if (options & pe_print_clone_details) { options 682 lib/pengine/clone.c } else if (pcmk_is_set(options, pe_print_pending) options 691 lib/pengine/clone.c && !pcmk_is_set(options, pe_print_clone_active)) { options 735 lib/pengine/clone.c if (options & pe_print_html) { options 738 lib/pengine/clone.c child_rsc->fns->print(child_rsc, child_text, options, print_data); options 739 lib/pengine/clone.c if (options & pe_print_html) { options 756 lib/pengine/clone.c PROMOTED_INSTANCES, NULL, options, print_data); options 777 lib/pengine/clone.c NULL, options, print_data); options 780 lib/pengine/clone.c UNPROMOTED_INSTANCES, NULL, options, print_data); options 785 lib/pengine/clone.c NULL, options, print_data); options 791 lib/pengine/clone.c if (!pcmk_is_set(options, pe_print_clone_active)) { options 832 lib/pengine/clone.c NULL, options, print_data); options 836 lib/pengine/clone.c if (options & pe_print_html) { options 50 lib/pengine/common.c pe_pref(GHashTable * options, const char *name) options 52 lib/pengine/common.c return pcmk__cluster_option(options, name); options 265 lib/pengine/group.c group_print_xml(pcmk_resource_t *rsc, const char *pre_text, long options, options 278 lib/pengine/group.c child_rsc->fns->print(child_rsc, child_text, options, print_data); options 290 lib/pengine/group.c group_print(pcmk_resource_t *rsc, const char *pre_text, long options, options 300 lib/pengine/group.c if (options & pe_print_xml) { options 301 lib/pengine/group.c group_print_xml(rsc, pre_text, options, print_data); options 309 lib/pengine/group.c if (options & pe_print_html) { options 312 lib/pengine/group.c } else if ((options & pe_print_log) == 0) { options 316 lib/pengine/group.c if (options & pe_print_brief) { options 317 lib/pengine/group.c print_rscs_brief(rsc->children, child_text, options, print_data, TRUE); options 323 lib/pengine/group.c if (options & pe_print_html) { options 326 lib/pengine/group.c child_rsc->fns->print(child_rsc, child_text, options, print_data); options 327 lib/pengine/group.c if (options & pe_print_html) { options 333 lib/pengine/group.c if (options & pe_print_html) { options 368 lib/pengine/native.c long options; options 460 lib/pengine/native.c native_print_xml(pcmk_resource_t *rsc, const char *pre_text, long options, options 465 lib/pengine/native.c const char *rsc_state = native_displayable_state(rsc, pcmk_is_set(options, pe_print_pending)); options 496 lib/pengine/native.c if (options & pe_print_pending) { options 505 lib/pengine/native.c if (options & pe_print_rsconly) { options 820 lib/pengine/native.c const pcmk_node_t *node, long options, void *print_data) options 831 lib/pengine/native.c && !pcmk_is_set(options, pe_print_implicit)) { options 839 lib/pengine/native.c if (options & pe_print_xml) { options 840 lib/pengine/native.c native_print_xml(rsc, pre_text, options, print_data); options 844 lib/pengine/native.c if ((pre_text == NULL) && (options & pe_print_printf)) { options 848 lib/pengine/native.c if (options & pe_print_html) { options 870 lib/pengine/native.c gchar *resource_s = pcmk__native_output_string(rsc, name, node, options, options 876 lib/pengine/native.c if (pcmk_is_set(options, pe_print_html)) { options 880 lib/pengine/native.c if (!pcmk_is_set(options, pe_print_rsconly) options 886 lib/pengine/native.c if (options & pe_print_html) { options 888 lib/pengine/native.c } else if ((options & pe_print_printf) options 889 lib/pengine/native.c || (options & pe_print_ncurses)) { options 898 lib/pengine/native.c if (options & pe_print_html) { options 901 lib/pengine/native.c } else if ((options & pe_print_printf) options 902 lib/pengine/native.c || (options & pe_print_ncurses)) { options 905 lib/pengine/native.c } else if ((options & pe_print_log)) { options 911 lib/pengine/native.c if (options & pe_print_html) { options 917 lib/pengine/native.c if (options & pe_print_html) { options 919 lib/pengine/native.c } else if ((options & pe_print_printf) options 920 lib/pengine/native.c || (options & pe_print_ncurses)) { options 925 lib/pengine/native.c if (options & pe_print_html) { options 927 lib/pengine/native.c } else if (options & pe_print_suppres_nl) { options 929 lib/pengine/native.c } else if ((options & pe_print_printf) || (options & pe_print_ncurses)) { options 939 lib/pengine/native.c native_print(pcmk_resource_t *rsc, const char *pre_text, long options, options 946 lib/pengine/native.c if (options & pe_print_xml) { options 947 lib/pengine/native.c native_print_xml(rsc, pre_text, options, print_data); options 958 lib/pengine/native.c common_print(rsc, pre_text, rsc_printable_id(rsc), node, options, print_data); options 1271 lib/pengine/native.c print_rscs_brief(GList *rsc_list, const char *pre_text, long options, options 1300 lib/pengine/native.c if (options & pe_print_rsconly) { options 1304 lib/pengine/native.c if (options & pe_print_html) { options 1319 lib/pengine/native.c if (options & pe_print_html) { options 1325 lib/pengine/native.c if (options & pe_print_html) { options 1333 lib/pengine/native.c if (options & pe_print_html) { options 32 lib/pengine/pe_status_private.h if(options & pe_print_html) { \ options 35 lib/pengine/pe_status_private.h } else if(options & pe_print_printf || options & pe_print_ncurses) { \ options 38 lib/pengine/pe_status_private.h } else if(options & pe_print_xml) { \ options 41 lib/pengine/pe_status_private.h } else if(options & pe_print_log) { \ 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 54 tools/attrd_updater.c } options = { options 61 tools/attrd_updater.c pcmk__str_update(&options.attr_value, optarg); options 64 tools/attrd_updater.c options.command = 'B'; options 66 tools/attrd_updater.c options.command = 'D'; options 68 tools/attrd_updater.c options.command = 'Q'; options 70 tools/attrd_updater.c options.command = 'R'; options 72 tools/attrd_updater.c options.command = 'U'; options 74 tools/attrd_updater.c options.command = 'Y'; options 82 tools/attrd_updater.c pcmk__set_node_attr_flags(options.attr_options, pcmk__node_attr_private); options 89 tools/attrd_updater.c pcmk__set_node_attr_flags(options.attr_options, pcmk__node_attr_perm); options 91 tools/attrd_updater.c pcmk__clear_node_attr_flags(options.attr_options, pcmk__node_attr_perm); options 104 tools/attrd_updater.c pcmk__set_node_attr_flags(options.attr_options, pcmk__node_attr_utilization); options 113 tools/attrd_updater.c pcmk__clear_node_attr_flags(options.attr_options, pcmk__node_attr_sync_local | pcmk__node_attr_sync_cluster); options 116 tools/attrd_updater.c pcmk__clear_node_attr_flags(options.attr_options, pcmk__node_attr_sync_local | pcmk__node_attr_sync_cluster); options 117 tools/attrd_updater.c pcmk__set_node_attr_flags(options.attr_options, pcmk__node_attr_sync_local); options 120 tools/attrd_updater.c pcmk__clear_node_attr_flags(options.attr_options, pcmk__node_attr_sync_local | pcmk__node_attr_sync_cluster); options 121 tools/attrd_updater.c pcmk__set_node_attr_flags(options.attr_options, pcmk__node_attr_sync_cluster); options 133 tools/attrd_updater.c { "name", 'n', 0, G_OPTION_ARG_STRING, &options.attr_name, options 137 tools/attrd_updater.c { "pattern", 'P', 0, G_OPTION_ARG_STRING, &options.attr_pattern, options 191 tools/attrd_updater.c { "delay", 'd', 0, G_OPTION_ARG_STRING, &options.attr_dampen, options 196 tools/attrd_updater.c { "set", 's', 0, G_OPTION_ARG_STRING, &options.attr_set, options 200 tools/attrd_updater.c { "node", 'N', 0, G_OPTION_ARG_STRING, &options.attr_node, options 204 tools/attrd_updater.c { "all", 'A', 0, G_OPTION_ARG_NONE, &options.query_all, options 238 tools/attrd_updater.c { "quiet", 'q', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &options.quiet, options 265 tools/attrd_updater.c return options.command == 'B' || options.command == 'D' || options.command == 'U' || options.command == 'Y'; options 320 tools/attrd_updater.c if (options.attr_pattern) { options 321 tools/attrd_updater.c if (options.attr_name) { options 335 tools/attrd_updater.c g_free(options.attr_name); options 336 tools/attrd_updater.c options.attr_name = options.attr_pattern; options 337 tools/attrd_updater.c options.attr_options |= pcmk__node_attr_pattern; options 340 tools/attrd_updater.c if (options.command != 'R' && options.attr_name == NULL) { options 344 tools/attrd_updater.c } else if ((options.command == 'B'|| options.command == 'Y') && options.attr_dampen == NULL) { options 345 tools/attrd_updater.c out->info(out, "Warning: '%c' command given without required --delay", options.command); options 350 tools/attrd_updater.c if (options.command == 'Q') { options 351 tools/attrd_updater.c int rc = send_attrd_query(out, options.attr_name, options.attr_node, options.query_all); options 359 tools/attrd_updater.c int rc = send_attrd_update(options.command, options.attr_node, options 360 tools/attrd_updater.c options.attr_name, options.attr_value, options 361 tools/attrd_updater.c options.attr_set, options.attr_dampen, options 362 tools/attrd_updater.c options.attr_options); options 369 tools/attrd_updater.c g_free(options.attr_dampen); options 370 tools/attrd_updater.c g_free(options.attr_name); options 371 tools/attrd_updater.c g_free(options.attr_node); options 372 tools/attrd_updater.c g_free(options.attr_set); options 373 tools/attrd_updater.c free(options.attr_value); options 437 tools/attrd_updater.c uint32_t options = pcmk__node_attr_none; options 463 tools/attrd_updater.c options |= pcmk__node_attr_query_all; options 466 tools/attrd_updater.c rc = pcmk__attrd_api_query(attrd_api, attr_node, attr_name, options); options 65 tools/cibadmin.c } options; options 81 tools/cibadmin.c if (pcmk_is_set(options.cmd_options, cib_xpath_address)) { options 124 tools/cibadmin.c return options.no_bcast || options.delete_all options 125 tools/cibadmin.c || pcmk__str_any_of(options.cib_action, options 163 tools/cibadmin.c options.delete_all = false; options 166 tools/cibadmin.c options.cib_action = PCMK__CIB_REQUEST_UPGRADE; options 169 tools/cibadmin.c options.cib_action = PCMK__CIB_REQUEST_QUERY; options 172 tools/cibadmin.c options.cib_action = PCMK__CIB_REQUEST_ERASE; options 175 tools/cibadmin.c options.cib_action = PCMK__CIB_REQUEST_BUMP; options 178 tools/cibadmin.c options.cib_action = PCMK__CIB_REQUEST_CREATE; options 181 tools/cibadmin.c options.cib_action = PCMK__CIB_REQUEST_MODIFY; options 184 tools/cibadmin.c options.cib_action = PCMK__CIB_REQUEST_APPLY_PATCH; options 187 tools/cibadmin.c options.cib_action = PCMK__CIB_REQUEST_REPLACE; options 190 tools/cibadmin.c options.cib_action = PCMK__CIB_REQUEST_DELETE; options 193 tools/cibadmin.c options.cib_action = PCMK__CIB_REQUEST_DELETE; options 194 tools/cibadmin.c options.delete_all = true; options 197 tools/cibadmin.c options.cib_action = "empty"; options 198 tools/cibadmin.c pcmk__str_update(&options.validate_with, optarg); options 201 tools/cibadmin.c options.cib_action = "md5-sum"; options 205 tools/cibadmin.c options.cib_action = "md5-sum-versioned"; options 220 tools/cibadmin.c options.acl_render_mode = pcmk__acl_render_default; options 223 tools/cibadmin.c options.acl_render_mode = pcmk__acl_render_namespace; options 226 tools/cibadmin.c options.acl_render_mode = pcmk__acl_render_text; options 229 tools/cibadmin.c options.acl_render_mode = pcmk__acl_render_color; options 245 tools/cibadmin.c options.section_type = cibadmin_section_scope; options 248 tools/cibadmin.c options.section_type = cibadmin_section_xpath; options 255 tools/cibadmin.c pcmk__str_update(&options.cib_section, optarg); options 324 tools/cibadmin.c &options.input_xml, "Retrieve XML from the supplied string", "value" }, options 327 tools/cibadmin.c &options.input_file, "Retrieve XML from the named file", "value" }, options 330 tools/cibadmin.c &options.input_stdin, "Retrieve XML from stdin", NULL }, options 336 tools/cibadmin.c { "force", 'f', G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE, &options.force, options 340 tools/cibadmin.c &options.message_timeout_sec, options 344 tools/cibadmin.c { "user", 'U', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, &options.cib_user, options 349 tools/cibadmin.c &options.sync_call, "Wait for call to complete before returning", NULL }, options 351 tools/cibadmin.c { "local", 'l', G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE, &options.local, options 373 tools/cibadmin.c &options.get_node_path, options 392 tools/cibadmin.c { "score", 0, G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE, &options.score_update, options 419 tools/cibadmin.c &options.allow_create, options 425 tools/cibadmin.c &options.no_children, options 430 tools/cibadmin.c { "node", 'N', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, &options.dest_node, options 435 tools/cibadmin.c &options.no_bcast, "deprecated", NULL }, options 439 tools/cibadmin.c &options.dest_node, "deprecated", NULL }, options 453 tools/cibadmin.c &options.extended_version, "deprecated", NULL }, options 553 tools/cibadmin.c if (args->version || options.extended_version) { options 563 tools/cibadmin.c pcmk__cli_help(options.extended_version? '!' : 'v'); options 577 tools/cibadmin.c cib__set_call_options(options.cmd_options, crm_system_name, options 585 tools/cibadmin.c if (options.cib_action == NULL) { options 596 tools/cibadmin.c if (strcmp(options.cib_action, "empty") == 0) { options 601 tools/cibadmin.c crm_xml_add(output, PCMK_XA_VALIDATE_WITH, options.validate_with); options 609 tools/cibadmin.c if (cib_action_is_dangerous() && !options.force) { options 618 tools/cibadmin.c if (options.message_timeout_sec < 1) { options 620 tools/cibadmin.c options.message_timeout_sec = 30; options 623 tools/cibadmin.c if (options.section_type == cibadmin_section_xpath) { options 625 tools/cibadmin.c cib__set_call_options(options.cmd_options, crm_system_name, options 628 tools/cibadmin.c } else if (options.section_type == cibadmin_section_scope) { options 629 tools/cibadmin.c if (!scope_is_valid(options.cib_section)) { options 633 tools/cibadmin.c "to the entire CIB.\n", options.cib_section); options 637 tools/cibadmin.c if (options.allow_create) { options 639 tools/cibadmin.c cib__set_call_options(options.cmd_options, crm_system_name, options 643 tools/cibadmin.c if (options.delete_all) { options 645 tools/cibadmin.c cib__set_call_options(options.cmd_options, crm_system_name, options 649 tools/cibadmin.c if (options.get_node_path) { options 653 tools/cibadmin.c cib__set_call_options(options.cmd_options, crm_system_name, options 657 tools/cibadmin.c if (options.local) { options 659 tools/cibadmin.c cib__set_call_options(options.cmd_options, crm_system_name, options 664 tools/cibadmin.c if (options.no_bcast) { options 666 tools/cibadmin.c cib__set_call_options(options.cmd_options, crm_system_name, options 670 tools/cibadmin.c if (options.no_children) { options 672 tools/cibadmin.c cib__set_call_options(options.cmd_options, crm_system_name, options 676 tools/cibadmin.c if (options.sync_call options 677 tools/cibadmin.c || (options.acl_render_mode != pcmk__acl_render_none)) { options 685 tools/cibadmin.c cib__set_call_options(options.cmd_options, crm_system_name, options 689 tools/cibadmin.c if (options.input_file != NULL) { options 690 tools/cibadmin.c input = pcmk__xml_read(options.input_file); options 691 tools/cibadmin.c source = options.input_file; options 693 tools/cibadmin.c } else if (options.input_xml != NULL) { options 694 tools/cibadmin.c input = pcmk__xml_parse(options.input_xml); options 697 tools/cibadmin.c } else if (options.input_stdin) { options 701 tools/cibadmin.c } else if (options.acl_render_mode != pcmk__acl_render_none) { options 708 tools/cibadmin.c if (options.force) { options 727 tools/cibadmin.c if (options.cib_user == NULL) { options 742 tools/cibadmin.c acl_cred = options.cib_user; options 743 tools/cibadmin.c options.cib_user = NULL; options 756 tools/cibadmin.c if (pcmk__str_eq(options.cib_action, "md5-sum", pcmk__str_casei)) { options 772 tools/cibadmin.c } else if (strcmp(options.cib_action, "md5-sum-versioned") == 0) { options 790 tools/cibadmin.c } else if (pcmk__str_eq(options.cib_action, PCMK__CIB_REQUEST_MODIFY, options 795 tools/cibadmin.c cib__set_call_options(options.cmd_options, crm_system_name, options 813 tools/cibadmin.c if (!pcmk_is_set(options.cmd_options, cib_sync_call) options 824 tools/cibadmin.c options.message_timeout_sec, FALSE, options 839 tools/cibadmin.c && (strcmp(options.cib_action, PCMK__CIB_REQUEST_UPGRADE) == 0)) { options 849 tools/cibadmin.c if (strcmp(options.cib_action, options 854 tools/cibadmin.c options.cmd_options) == pcmk_ok) { options 868 tools/cibadmin.c && (options.acl_render_mode != pcmk__acl_render_none)) { options 876 tools/cibadmin.c options.acl_render_mode, &rendered); options 905 tools/cibadmin.c g_free(options.cib_user); options 906 tools/cibadmin.c g_free(options.dest_node); options 907 tools/cibadmin.c g_free(options.input_file); options 908 tools/cibadmin.c g_free(options.input_xml); options 909 tools/cibadmin.c free(options.cib_section); options 910 tools/cibadmin.c free(options.validate_with); options 929 tools/cibadmin.c the_cib->call_timeout = options.message_timeout_sec; options 930 tools/cibadmin.c if ((strcmp(options.cib_action, PCMK__CIB_REQUEST_REPLACE) == 0) options 939 tools/cibadmin.c crm_trace("Passing \"%s\" to variant_op...", options.cib_action); options 940 tools/cibadmin.c return cib_internal_op(the_cib, options.cib_action, options.dest_node, options 941 tools/cibadmin.c options.cib_section, input, output, options 942 tools/cibadmin.c options.cmd_options, options.cib_user); options 972 tools/cibadmin.c options.cib_action, pcmk_rc_str(rc), rc); options 974 tools/cibadmin.c options.cib_action, pcmk_rc_str(rc)); options 977 tools/cibadmin.c } else if ((strcmp(options.cib_action, PCMK__CIB_REQUEST_QUERY) == 0) options 80 tools/crm_attribute.c } options = { options 89 tools/crm_attribute.c options.command = attr_cmd_list; options 90 tools/crm_attribute.c pcmk__str_update(&options.opt_list, optarg); options 96 tools/crm_attribute.c options.command = attr_cmd_delete; options 97 tools/crm_attribute.c pcmk__str_update(&options.attr_value, NULL); options 105 tools/crm_attribute.c options.promotion_score = false; options 107 tools/crm_attribute.c if (options.attr_name != NULL) { options 108 tools/crm_attribute.c g_free(options.attr_name); options 110 tools/crm_attribute.c options.attr_name = g_strdup(optarg); options 118 tools/crm_attribute.c options.promotion_score = true; options 120 tools/crm_attribute.c if (options.attr_name) { options 121 tools/crm_attribute.c g_free(options.attr_name); options 126 tools/crm_attribute.c options.attr_name = g_strdup(score_name); options 129 tools/crm_attribute.c options.attr_name = NULL; options 137 tools/crm_attribute.c options.command = attr_cmd_update; options 138 tools/crm_attribute.c pcmk__str_update(&options.attr_value, optarg); options 144 tools/crm_attribute.c if (options.type) { options 145 tools/crm_attribute.c g_free(options.type); options 148 tools/crm_attribute.c options.type = g_strdup(PCMK_XE_NODES); options 149 tools/crm_attribute.c pcmk__str_update(&options.set_type, PCMK_XE_UTILIZATION); options 155 tools/crm_attribute.c options.command = attr_cmd_query; options 156 tools/crm_attribute.c pcmk__str_update(&options.attr_value, NULL); options 163 tools/crm_attribute.c pcmk__clear_node_attr_flags(options.attr_options, pcmk__node_attr_sync_local | pcmk__node_attr_sync_cluster); options 166 tools/crm_attribute.c pcmk__clear_node_attr_flags(options.attr_options, pcmk__node_attr_sync_local | pcmk__node_attr_sync_cluster); options 167 tools/crm_attribute.c pcmk__set_node_attr_flags(options.attr_options, pcmk__node_attr_sync_local); options 170 tools/crm_attribute.c pcmk__clear_node_attr_flags(options.attr_options, pcmk__node_attr_sync_local | pcmk__node_attr_sync_cluster); options 171 tools/crm_attribute.c pcmk__set_node_attr_flags(options.attr_options, pcmk__node_attr_sync_cluster); options 181 tools/crm_attribute.c { "all", 'a', G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE, &options.all, options 188 tools/crm_attribute.c { "id", 'i', 0, G_OPTION_ARG_STRING, &options.attr_id, options 201 tools/crm_attribute.c { "pattern", 'P', 0, G_OPTION_ARG_STRING, &options.attr_pattern, options 215 tools/crm_attribute.c { "set-name", 's', 0, G_OPTION_ARG_STRING, &options.set_name, options 251 tools/crm_attribute.c { "default", 'd', 0, G_OPTION_ARG_STRING, &options.attr_default, options 256 tools/crm_attribute.c { "lifetime", 'l', 0, G_OPTION_ARG_STRING, &options.type, options 262 tools/crm_attribute.c { "node", 'N', 0, G_OPTION_ARG_STRING, &options.dest_uname, options 268 tools/crm_attribute.c { "type", 't', 0, G_OPTION_ARG_STRING, &options.type, options 274 tools/crm_attribute.c { "score", 0, G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE, &options.score_update, options 319 tools/crm_attribute.c { "inhibit-policy-engine", '!', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &options.inhibit, options 327 tools/crm_attribute.c { "attr-id", 0, G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_STRING, &options.attr_id, options 347 tools/crm_attribute.c { "node-uname", 'U', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_STRING, &options.dest_uname, options 359 tools/crm_attribute.c g_free(options.dest_uname); options 362 tools/crm_attribute.c options.dest_uname = g_strdup(hostinfo.nodename); options 364 tools/crm_attribute.c options.dest_uname = NULL; options 413 tools/crm_attribute.c if (!pcmk__str_eq(attr_name, options.attr_pattern, pcmk__str_regex)) { options 417 tools/crm_attribute.c rc = cib__delete_node_attr(dd->out, dd->cib, cib_opts, options.type, options 418 tools/crm_attribute.c options.dest_node, options.set_type, options 419 tools/crm_attribute.c options.set_name, options.attr_id, options 420 tools/crm_attribute.c attr_name, options.attr_value, NULL); options 432 tools/crm_attribute.c if (pcmk__str_eq(options.opt_list, PCMK__VALUE_CLUSTER, pcmk__str_none)) { options 433 tools/crm_attribute.c exit_code = pcmk_rc2exitc(pcmk__list_cluster_options(out, options.all)); options 441 tools/crm_attribute.c pcmk__s(options.opt_list, "(BUG: none)")); options 451 tools/crm_attribute.c bool use_pattern = options.attr_pattern != NULL; options 457 tools/crm_attribute.c rc = cib__get_node_attrs(out, cib, options.type, options.dest_node, options 458 tools/crm_attribute.c options.set_type, options.set_name, NULL, NULL, options 468 tools/crm_attribute.c rc = cib__delete_node_attr(out, cib, cib_opts, options.type, options.dest_node, options 469 tools/crm_attribute.c options.set_type, options.set_name, options.attr_id, options 470 tools/crm_attribute.c options.attr_name, options.attr_value, NULL); options 500 tools/crm_attribute.c if (!pcmk__str_eq(attr_name, options.attr_pattern, pcmk__str_regex)) { options 504 tools/crm_attribute.c return cib__update_node_attr(ud->out, ud->cib, cib_opts, options.type, options 505 tools/crm_attribute.c options.dest_node, options.set_type, options 506 tools/crm_attribute.c options.set_name, options.attr_id, options 507 tools/crm_attribute.c attr_name, options.attr_value, NULL, options 517 tools/crm_attribute.c bool use_pattern = options.attr_pattern != NULL; options 528 tools/crm_attribute.c rc = cib__get_node_attrs(out, cib, options.type, options.dest_node, options 529 tools/crm_attribute.c options.set_type, options.set_name, NULL, NULL, options 539 tools/crm_attribute.c rc = cib__update_node_attr(out, cib, cib_opts, options.type, options 540 tools/crm_attribute.c options.dest_node, options.set_type, options 541 tools/crm_attribute.c options.set_name, options.attr_id, options 542 tools/crm_attribute.c options.attr_name, options.attr_value, NULL, options 565 tools/crm_attribute.c const char *type = options.type; options 566 tools/crm_attribute.c const char *attr_id = options.attr_id; options 568 tools/crm_attribute.c if (od->use_pattern && !pcmk__str_eq(name, options.attr_pattern, pcmk__str_regex)) { options 577 tools/crm_attribute.c options.set_name ? "in " : "", options.set_name ? options.set_name : ""); options 588 tools/crm_attribute.c bool use_pattern = options.attr_pattern != NULL; options 596 tools/crm_attribute.c rc = cib__get_node_attrs(out, cib, options.type, options.dest_node, options 597 tools/crm_attribute.c options.set_type, options.set_name, NULL, options 600 tools/crm_attribute.c rc = cib__get_node_attrs(out, cib, options.type, options.dest_node, options 601 tools/crm_attribute.c options.set_type, options.set_name, options.attr_id, options 602 tools/crm_attribute.c options.attr_name, NULL, &result); options 605 tools/crm_attribute.c if (rc == ENXIO && options.attr_default) { options 607 tools/crm_attribute.c const char *type = options.type; options 608 tools/crm_attribute.c const char *attr_id = options.attr_id; options 609 tools/crm_attribute.c const char *attr_name = options.attr_name; options 610 tools/crm_attribute.c const char *attr_default = options.attr_default; options 640 tools/crm_attribute.c if (options.type == NULL) { options 641 tools/crm_attribute.c if (options.promotion_score) { options 643 tools/crm_attribute.c options.type = g_strdup(PCMK_XE_STATUS); options 645 tools/crm_attribute.c } else if (options.dest_uname != NULL) { options 647 tools/crm_attribute.c options.type = g_strdup(PCMK_XE_NODES); options 651 tools/crm_attribute.c options.type = g_strdup(PCMK_XE_CRM_CONFIG); options 654 tools/crm_attribute.c } else if (pcmk__str_eq(options.type, "reboot", pcmk__str_casei)) { options 655 tools/crm_attribute.c options.type = g_strdup(PCMK_XE_STATUS); options 657 tools/crm_attribute.c } else if (pcmk__str_eq(options.type, "forever", pcmk__str_casei)) { options 658 tools/crm_attribute.c options.type = g_strdup(PCMK_XE_NODES); options 668 tools/crm_attribute.c return pcmk__str_eq(options.type, PCMK_XE_STATUS, pcmk__str_casei) && options 676 tools/crm_attribute.c && ((options.command == attr_cmd_delete) options 677 tools/crm_attribute.c || (options.command == attr_cmd_update)); options 686 tools/crm_attribute.c switch (options.command) { options 699 tools/crm_attribute.c return (options.command != attr_cmd_delete) options 700 tools/crm_attribute.c || (options.attr_name != NULL) options 701 tools/crm_attribute.c || (options.attr_pattern != NULL); options 707 tools/crm_attribute.c return (options.command != attr_cmd_update) options 708 tools/crm_attribute.c || (options.attr_name != NULL) options 709 tools/crm_attribute.c || (options.attr_pattern != NULL); options 802 tools/crm_attribute.c if (options.command == attr_cmd_list) { options 807 tools/crm_attribute.c if (options.promotion_score && options.attr_name == NULL) { options 815 tools/crm_attribute.c if (options.inhibit) { options 834 tools/crm_attribute.c if (!pcmk__strcase_any_of(options.type, options 840 tools/crm_attribute.c const char *target = pcmk__node_attr_target(options.dest_uname); options 855 tools/crm_attribute.c if (target != (const char *) options.dest_uname) { options 856 tools/crm_attribute.c g_free(options.dest_uname); options 857 tools/crm_attribute.c options.dest_uname = g_strdup(target); options 860 tools/crm_attribute.c } else if (getenv("CIB_file") != NULL && options.dest_uname == NULL) { options 864 tools/crm_attribute.c if (options.dest_uname == NULL) { options 874 tools/crm_attribute.c options.dest_uname = g_strdup(node_name); options 878 tools/crm_attribute.c rc = query_node_uuid(the_cib, options.dest_uname, &options.dest_node, &is_remote_node); options 884 tools/crm_attribute.c "Could not map name=%s to a UUID", options.dest_uname); options 903 tools/crm_attribute.c if (options.attr_pattern) { options 904 tools/crm_attribute.c if (options.attr_name) { options 918 tools/crm_attribute.c g_free(options.attr_name); options 919 tools/crm_attribute.c options.attr_name = options.attr_pattern; options 920 tools/crm_attribute.c options.attr_options |= pcmk__node_attr_pattern; options 924 tools/crm_attribute.c options.attr_options |= pcmk__node_attr_remote; options 927 tools/crm_attribute.c if (pcmk__str_eq(options.set_type, PCMK_XE_UTILIZATION, pcmk__str_none)) { options 928 tools/crm_attribute.c options.attr_options |= pcmk__node_attr_utilization; options 932 tools/crm_attribute.c (send_attrd_update(options.command, options.dest_uname, options.attr_name, options 933 tools/crm_attribute.c options.attr_value, options.set_name, NULL, options.attr_options) == pcmk_rc_ok)) { options 935 tools/crm_attribute.c const char *update = options.attr_value; options 937 tools/crm_attribute.c if (options.command == attr_cmd_delete) { options 941 tools/crm_attribute.c options.attr_name, update); options 943 tools/crm_attribute.c } else if (options.command == attr_cmd_delete) { options 946 tools/crm_attribute.c } else if (options.command == attr_cmd_update) { options 968 tools/crm_attribute.c free(options.attr_default); options 969 tools/crm_attribute.c g_free(options.attr_id); options 970 tools/crm_attribute.c g_free(options.attr_name); options 971 tools/crm_attribute.c free(options.attr_value); options 972 tools/crm_attribute.c free(options.dest_node); options 973 tools/crm_attribute.c g_free(options.dest_uname); options 974 tools/crm_attribute.c g_free(options.set_name); options 975 tools/crm_attribute.c free(options.set_type); options 976 tools/crm_attribute.c g_free(options.type); options 39 tools/crm_diff.c } options; options 46 tools/crm_diff.c { "original", 'o', 0, G_OPTION_ARG_STRING, &options.xml_file_1, options 57 tools/crm_diff.c { "new", 'n', 0, G_OPTION_ARG_STRING, &options.xml_file_2, options 71 tools/crm_diff.c { "cib", 'c', 0, G_OPTION_ARG_NONE, &options.as_cib, options 74 tools/crm_diff.c { "stdin", 's', 0, G_OPTION_ARG_NONE, &options.use_stdin, options 77 tools/crm_diff.c { "no-version", 'u', 0, G_OPTION_ARG_NONE, &options.no_version, options 86 tools/crm_diff.c options.raw_2 = TRUE; options 87 tools/crm_diff.c pcmk__str_update(&options.xml_file_2, optarg); options 93 tools/crm_diff.c options.raw_1 = TRUE; options 94 tools/crm_diff.c pcmk__str_update(&options.xml_file_1, optarg); options 100 tools/crm_diff.c options.apply = TRUE; options 101 tools/crm_diff.c pcmk__str_update(&options.xml_file_2, optarg); options 324 tools/crm_diff.c if (options.apply && options.no_version) { options 326 tools/crm_diff.c } else if (options.as_cib && options.no_version) { options 332 tools/crm_diff.c if (options.raw_1) { options 333 tools/crm_diff.c object_1 = pcmk__xml_parse(options.xml_file_1); options 335 tools/crm_diff.c } else if (options.use_stdin) { options 339 tools/crm_diff.c } else if (options.xml_file_1 != NULL) { options 340 tools/crm_diff.c object_1 = pcmk__xml_read(options.xml_file_1); options 343 tools/crm_diff.c if (options.raw_2) { options 344 tools/crm_diff.c object_2 = pcmk__xml_parse(options.xml_file_2); options 346 tools/crm_diff.c } else if (options.use_stdin) { options 350 tools/crm_diff.c } else if (options.xml_file_2 != NULL) { options 351 tools/crm_diff.c object_2 = pcmk__xml_read(options.xml_file_2); options 365 tools/crm_diff.c if (options.apply) { options 366 tools/crm_diff.c rc = apply_patch(object_1, object_2, options.as_cib); options 368 tools/crm_diff.c rc = generate_patch(object_1, object_2, options.xml_file_2, options.as_cib, options.no_version); options 375 tools/crm_diff.c free(options.xml_file_1); options 376 tools/crm_diff.c free(options.xml_file_2); options 26 tools/crm_error.c } options = { options 35 tools/crm_error.c options.result_type = pcmk_result_exitcode; options 37 tools/crm_error.c options.result_type = pcmk_result_rc; options 44 tools/crm_error.c { "name", 'n', 0, G_OPTION_ARG_NONE, &options.with_name, options 48 tools/crm_error.c { "list", 'l', 0, G_OPTION_ARG_NONE, &options.do_list, options 112 tools/crm_error.c options.do_list = TRUE; options 122 tools/crm_error.c if (options.do_list) { options 125 tools/crm_error.c if (options.with_name) { options 131 tools/crm_error.c pcmk__list_result_codes(out, options.result_type, flags); options 144 tools/crm_error.c if (options.with_name) { options 159 tools/crm_error.c pcmk__show_result_code(out, code, options.result_type, flags); options 230 tools/crm_mon.c } options = { options 357 tools/crm_mon.c if (options.neg_location_prefix != NULL) { options 358 tools/crm_mon.c free(options.neg_location_prefix); options 359 tools/crm_mon.c options.neg_location_prefix = NULL; options 363 tools/crm_mon.c options.neg_location_prefix = strdup(*s+5); options 418 tools/crm_mon.c options.user_includes_excludes = g_slist_append(options.user_includes_excludes, s); options 426 tools/crm_mon.c options.includes_excludes = g_slist_append(options.includes_excludes, s); options 434 tools/crm_mon.c options.exec_mode = mon_exec_one_shot; options 451 tools/crm_mon.c options.exec_mode = mon_exec_one_shot; options 472 tools/crm_mon.c options.fence_connect = TRUE; options 478 tools/crm_mon.c options.fence_connect = TRUE; options 484 tools/crm_mon.c options.fence_connect = TRUE; options 489 tools/crm_mon.c options.fence_connect = FALSE; options 556 tools/crm_mon.c pcmk_parse_interval_spec(optarg, &options.reconnect_ms); options 558 tools/crm_mon.c if (options.exec_mode != mon_exec_daemonized) { options 560 tools/crm_mon.c options.exec_mode = mon_exec_update; options 580 tools/crm_mon.c options.exec_mode = mon_exec_one_shot; options 597 tools/crm_mon.c options.exec_mode = mon_exec_daemonized; options 636 tools/crm_mon.c options.exec_mode = mon_exec_one_shot; options 659 tools/crm_mon.c { "pid-file", 'p', 0, G_OPTION_ARG_FILENAME, &options.pid_file, options 663 tools/crm_mon.c { "external-agent", 'E', 0, G_OPTION_ARG_FILENAME, &options.external_agent, options 667 tools/crm_mon.c { "external-recipient", 'e', 0, G_OPTION_ARG_STRING, &options.external_recipient, options 671 tools/crm_mon.c { "watch-fencing", 'W', 0, G_OPTION_ARG_NONE, &options.watch_fencing, options 693 tools/crm_mon.c { "node", 0, 0, G_OPTION_ARG_STRING, &options.only_node, options 698 tools/crm_mon.c { "resource", 0, 0, G_OPTION_ARG_STRING, &options.only_rsc, options 758 tools/crm_mon.c { "pending", 'j', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &options.print_pending, options 821 tools/crm_mon.c reconnect_timer = g_timeout_add(options.reconnect_ms, options 866 tools/crm_mon.c reconnect_timer = g_timeout_add(options.reconnect_ms, options 913 tools/crm_mon.c if (options.fence_connect && st == NULL) { options 917 tools/crm_mon.c if (!options.fence_connect || st == NULL || st->state != stonith_disconnected) { options 924 tools/crm_mon.c if (options.watch_fencing) { options 1006 tools/crm_mon.c options.fence_connect = TRUE; options 1012 tools/crm_mon.c options.fence_connect = TRUE; options 1018 tools/crm_mon.c options.fence_connect = TRUE; options 1025 tools/crm_mon.c options.fence_connect = FALSE; options 1045 tools/crm_mon.c options.reconnect_ms / 2, false, options 1399 tools/crm_mon.c if ((options.exec_mode == mon_exec_daemonized) options 1400 tools/crm_mon.c || (options.exec_mode == mon_exec_one_shot) options 1437 tools/crm_mon.c options.exec_mode = mon_exec_update; options 1439 tools/crm_mon.c } else if (options.exec_mode == mon_exec_unset) { options 1441 tools/crm_mon.c options.exec_mode = mon_exec_one_shot; options 1443 tools/crm_mon.c } else if ((options.exec_mode == mon_exec_update) options 1447 tools/crm_mon.c options.exec_mode = mon_exec_one_shot; options 1475 tools/crm_mon.c options.only_node, options.only_rsc, options 1476 tools/crm_mon.c options.neg_location_prefix, options 1508 tools/crm_mon.c options.pid_file = strdup("/tmp/ClusterMon.pid"); options 1516 tools/crm_mon.c options.exec_mode = mon_exec_one_shot; options 1547 tools/crm_mon.c if (options.watch_fencing) { options 1549 tools/crm_mon.c options.fence_connect = TRUE; options 1571 tools/crm_mon.c options.exec_mode = mon_exec_one_shot; options 1585 tools/crm_mon.c if ((options.exec_mode == mon_exec_daemonized) options 1586 tools/crm_mon.c && !options.external_agent options 1623 tools/crm_mon.c if (options.exec_mode == mon_exec_daemonized) { options 1624 tools/crm_mon.c if (!options.external_agent && (output_format == mon_output_none)) { options 1633 tools/crm_mon.c pcmk__daemonize(crm_system_name, options.pid_file); options 1643 tools/crm_mon.c apply_include_exclude(options.includes_excludes, &error); options 1649 tools/crm_mon.c if (!apply_include_exclude(options.user_includes_excludes, &error)) { options 1684 tools/crm_mon.c } else if (options.external_agent != NULL) { options 1687 tools/crm_mon.c } else if (options.exec_mode == mon_exec_daemonized) { options 1700 tools/crm_mon.c char *content = pcmk__itoa(options.reconnect_ms / 1000); options 1718 tools/crm_mon.c if (options.exec_mode == mon_exec_one_shot) { options 1731 tools/crm_mon.c options.reconnect_ms); options 1735 tools/crm_mon.c pcmk__sleep_ms(options.reconnect_ms); options 1793 tools/crm_mon.c crm_debug("Sending external notification to '%s' via '%s'", options.external_recipient, options.external_agent); options 1798 tools/crm_mon.c if (options.external_recipient) { options 1799 tools/crm_mon.c setenv("CRM_notify_recipient", options.external_recipient, 1); options 1814 tools/crm_mon.c execl(options.external_agent, options.external_agent, NULL); options 1818 tools/crm_mon.c crm_trace("Finished running custom notification program '%s'.", options.external_agent); options 1908 tools/crm_mon.c if (notify && options.external_agent) { options 2088 tools/crm_mon.c if (options.external_agent) { options 2134 tools/crm_mon.c pcmk__pacemakerd_status(out, crm_system_name, options.reconnect_ms / 2, options 2144 tools/crm_mon.c options.only_node,options.only_rsc, options 2145 tools/crm_mon.c options.neg_location_prefix, options 2172 tools/crm_mon.c } else if (options.external_agent) { options 2217 tools/crm_mon.c ((now - last_refresh) > (options.reconnect_ms / 1000)) || options 2263 tools/crm_mon.c free(options.neg_location_prefix); options 2264 tools/crm_mon.c free(options.only_node); options 2265 tools/crm_mon.c free(options.only_rsc); options 2266 tools/crm_mon.c free(options.pid_file); options 2267 tools/crm_mon.c g_slist_free_full(options.includes_excludes, free); options 2318 tools/crm_mon.c if (options.exec_mode != mon_exec_daemonized) { options 39 tools/crm_node.c } options = { options 84 tools/crm_node.c { "force", 'f', 0, G_OPTION_ARG_NONE, &options.force_flag, options 89 tools/crm_node.c { "corosync", 'C', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &options.corosync, options 109 tools/crm_node.c options.command = 'i'; options 111 tools/crm_node.c options.command = 'l'; options 113 tools/crm_node.c options.command = 'n'; options 115 tools/crm_node.c options.command = 'p'; options 117 tools/crm_node.c options.command = 'q'; options 128 tools/crm_node.c options.command = 'N'; options 129 tools/crm_node.c pcmk__scan_min_int(optarg, &(options.nodeid), 0); options 140 tools/crm_node.c options.command = 'R'; options 141 tools/crm_node.c options.dangerous_cmd = TRUE; options 142 tools/crm_node.c pcmk__str_update(&options.target_uname, optarg); options 374 tools/crm_node.c if (options.command == 'p') { options 376 tools/crm_node.c } else if (options.command == 'l') { options 812 tools/crm_node.c if (options.command == 0) { options 821 tools/crm_node.c if (options.dangerous_cmd && options.force_flag == FALSE) { options 833 tools/crm_node.c switch (options.command) { options 847 tools/crm_node.c print_node_name(options.nodeid); options 851 tools/crm_node.c remove_node(options.target_uname); options 110 tools/crm_resource.c } options = { options 292 tools/crm_resource.c options.opt_list = pcmk__opt_fencing; options 295 tools/crm_resource.c options.opt_list = pcmk__opt_primitive; options 324 tools/crm_resource.c options.rsc_cmd = cmd_ban; options 327 tools/crm_resource.c options.rsc_cmd = cmd_cleanup; options 330 tools/crm_resource.c options.rsc_cmd = cmd_clear; options 333 tools/crm_resource.c options.rsc_cmd = cmd_colocations; options 336 tools/crm_resource.c options.rsc_cmd = cmd_colocations; options 337 tools/crm_resource.c options.recursive = TRUE; options 340 tools/crm_resource.c options.rsc_cmd = cmd_cts; options 343 tools/crm_resource.c options.rsc_cmd = cmd_delete; options 347 tools/crm_resource.c options.rsc_cmd = cmd_delete_param; options 348 tools/crm_resource.c pcmk__str_update(&options.prop_name, optarg); options 351 tools/crm_resource.c options.rsc_cmd = cmd_digests; options 353 tools/crm_resource.c if (options.override_params == NULL) { options 354 tools/crm_resource.c options.override_params = pcmk__strkey_table(free, free); options 361 tools/crm_resource.c options.rsc_cmd = cmd_execute_agent; options 363 tools/crm_resource.c g_free(options.operation); options 364 tools/crm_resource.c options.operation = g_strdup(option_name + 2); // skip "--" options 366 tools/crm_resource.c if (options.override_params == NULL) { options 367 tools/crm_resource.c options.override_params = pcmk__strkey_table(free, free); options 371 tools/crm_resource.c if (pcmk__scan_min_int(optarg, &options.check_level, options 380 tools/crm_resource.c options.rsc_cmd = cmd_fail; options 383 tools/crm_resource.c options.rsc_cmd = cmd_get_param; options 384 tools/crm_resource.c pcmk__str_update(&options.prop_name, optarg); options 387 tools/crm_resource.c options.rsc_cmd = cmd_get_property; options 388 tools/crm_resource.c pcmk__str_update(&options.prop_name, optarg); options 391 tools/crm_resource.c options.rsc_cmd = cmd_list_active_ops; options 394 tools/crm_resource.c options.rsc_cmd = cmd_list_agents; options 395 tools/crm_resource.c pcmk__str_update(&options.agent_spec, optarg); options 399 tools/crm_resource.c options.rsc_cmd = cmd_list_all_ops; options 403 tools/crm_resource.c options.rsc_cmd = cmd_list_alternatives; options 404 tools/crm_resource.c pcmk__str_update(&options.agent_spec, optarg); options 407 tools/crm_resource.c options.rsc_cmd = cmd_list_options; options 411 tools/crm_resource.c options.rsc_cmd = cmd_list_instances; options 415 tools/crm_resource.c options.rsc_cmd = cmd_list_providers; options 416 tools/crm_resource.c pcmk__str_update(&options.agent_spec, optarg); options 419 tools/crm_resource.c options.rsc_cmd = cmd_list_resources; options 422 tools/crm_resource.c options.rsc_cmd = cmd_list_standards; options 425 tools/crm_resource.c options.rsc_cmd = cmd_locate; options 428 tools/crm_resource.c options.rsc_cmd = cmd_metadata; options 429 tools/crm_resource.c pcmk__str_update(&options.agent_spec, optarg); options 432 tools/crm_resource.c options.rsc_cmd = cmd_move; options 435 tools/crm_resource.c options.rsc_cmd = cmd_query_xml; options 438 tools/crm_resource.c options.rsc_cmd = cmd_query_xml_raw; options 441 tools/crm_resource.c options.rsc_cmd = cmd_refresh; options 444 tools/crm_resource.c options.rsc_cmd = cmd_restart; options 447 tools/crm_resource.c options.rsc_cmd = cmd_set_param; options 448 tools/crm_resource.c pcmk__str_update(&options.prop_name, optarg); options 451 tools/crm_resource.c options.rsc_cmd = cmd_set_property; options 452 tools/crm_resource.c pcmk__str_update(&options.prop_name, optarg); options 455 tools/crm_resource.c options.rsc_cmd = cmd_wait; options 458 tools/crm_resource.c options.rsc_cmd = cmd_why; options 634 tools/crm_resource.c &options.clear_expired, options 638 tools/crm_resource.c { "lifetime", 'u', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, &options.move_lifetime, options 643 tools/crm_resource.c &options.promoted_role_only, options 651 tools/crm_resource.c &options.promoted_role_only, options 713 tools/crm_resource.c { "node", 'N', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, &options.host_uname, options 716 tools/crm_resource.c { "recursive", 0, G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE, &options.recursive, options 719 tools/crm_resource.c { "resource-type", 't', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, &options.rsc_type, options 722 tools/crm_resource.c { "parameter-value", 'v', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, &options.prop_value, options 737 tools/crm_resource.c { "operation", 'n', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, &options.operation, options 740 tools/crm_resource.c { "interval", 'I', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, &options.interval_spec, options 761 tools/crm_resource.c { "set-name", 's', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, &options.prop_set, options 764 tools/crm_resource.c { "nvpair", 'i', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, &options.prop_id, options 771 tools/crm_resource.c { "all", 0, G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE, &options.all, options 775 tools/crm_resource.c { "force", 'f', G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE, &options.force, options 779 tools/crm_resource.c { "xml-file", 'x', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_FILENAME, &options.xml_file, options 782 tools/crm_resource.c { "host-uname", 'H', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_STRING, &options.host_uname, options 792 tools/crm_resource.c options.attr_set_type = PCMK_XE_META_ATTRIBUTES; options 794 tools/crm_resource.c options.attr_set_type = PCMK_XE_UTILIZATION; options 796 tools/crm_resource.c options.attr_set_type = ATTR_SET_ELEMENT; options 805 tools/crm_resource.c options.cmdline_config = true; options 808 tools/crm_resource.c pcmk__str_update(&options.v_class, optarg); options 811 tools/crm_resource.c pcmk__str_update(&options.v_provider, optarg); options 814 tools/crm_resource.c pcmk__str_update(&options.v_agent, optarg); options 829 tools/crm_resource.c if (options.cmdline_params == NULL) { options 830 tools/crm_resource.c options.cmdline_params = pcmk__strkey_table(free, free); options 832 tools/crm_resource.c g_hash_table_replace(options.cmdline_params, name, value); options 843 tools/crm_resource.c options.timeout_ms = 0U; options 845 tools/crm_resource.c options.timeout_ms = (guint) QB_MIN(timeout_ms, UINT_MAX); options 863 tools/crm_resource.c rc = cli_resource_ban(out, options.rsc_id, current->details->uname, move_lifetime, options 865 tools/crm_resource.c options.promoted_role_only, PCMK_ROLE_PROMOTED); options 883 tools/crm_resource.c rc = cli_resource_ban(out, options.rsc_id, current->details->uname, move_lifetime, options 885 tools/crm_resource.c options.promoted_role_only, options 896 tools/crm_resource.c options.rsc_id, nactive, count, options.rsc_id, options.rsc_id); options 905 tools/crm_resource.c options.rsc_id, nactive, options.rsc_id); options 916 tools/crm_resource.c if (options.force == FALSE) { options 921 tools/crm_resource.c rsc->id, options.rsc_id, (options.host_uname? options.host_uname: "all nodes")); options 922 tools/crm_resource.c rc = cli_resource_delete(controld_api, options.host_uname, rsc, options 923 tools/crm_resource.c options.operation, options.interval_spec, TRUE, options 924 tools/crm_resource.c scheduler, options.force); options 950 tools/crm_resource.c if (options.clear_expired) { options 952 tools/crm_resource.c cib_sync_call, options.rsc_id, options 953 tools/crm_resource.c options.host_uname, options 954 tools/crm_resource.c options.promoted_role_only); options 956 tools/crm_resource.c } else if (options.host_uname) { options 957 tools/crm_resource.c dest = pcmk_find_node(scheduler, options.host_uname); options 965 tools/crm_resource.c rc = cli_resource_clear(options.rsc_id, dest->details->uname, NULL, options 966 tools/crm_resource.c cib_conn, cib_sync_call, true, options.force); options 969 tools/crm_resource.c rc = cli_resource_clear(options.rsc_id, NULL, scheduler->nodes, options 970 tools/crm_resource.c cib_conn, cib_sync_call, true, options.force); options 1009 tools/crm_resource.c if (options.xml_file != NULL) { options 1010 tools/crm_resource.c *cib_xml_copy = pcmk__xml_read(options.xml_file); options 1045 tools/crm_resource.c switch (options.opt_list) { options 1048 tools/crm_resource.c options.all)); options 1052 tools/crm_resource.c options.all)); options 1066 tools/crm_resource.c const char *router_node = options.host_uname; options 1069 tools/crm_resource.c if (options.host_uname) { options 1070 tools/crm_resource.c pcmk_node_t *node = pcmk_find_node(scheduler, options.host_uname); options 1078 tools/crm_resource.c options.host_uname); options 1088 tools/crm_resource.c options.host_uname? options.host_uname : "all nodes"); options 1093 tools/crm_resource.c crm_debug("Re-checking the state of all resources on %s", options.host_uname?options.host_uname:"all nodes"); options 1095 tools/crm_resource.c rc = pcmk__attrd_api_clear_failures(NULL, options.host_uname, NULL, options 1098 tools/crm_resource.c if (pcmk_controld_api_reprobe(controld_api, options.host_uname, options 1111 tools/crm_resource.c if (options.force == FALSE) { options 1116 tools/crm_resource.c rsc->id, options.rsc_id, (options.host_uname? options.host_uname: "all nodes")); options 1117 tools/crm_resource.c rc = cli_resource_delete(controld_api, options.host_uname, rsc, NULL, 0, options 1118 tools/crm_resource.c FALSE, scheduler, options.force); options 1136 tools/crm_resource.c if (pcmk__str_empty(options.rsc_type)) { options 1142 tools/crm_resource.c } else if (pcmk__str_empty(options.prop_value)) { options 1149 tools/crm_resource.c CRM_LOG_ASSERT(options.prop_name != NULL); options 1151 tools/crm_resource.c msg_data = pcmk__xe_create(NULL, options.rsc_type); options 1152 tools/crm_resource.c crm_xml_add(msg_data, PCMK_XA_ID, options.rsc_id); options 1153 tools/crm_resource.c crm_xml_add(msg_data, options.prop_name, options.prop_value); options 1218 tools/crm_resource.c if (options.rsc_id != NULL) { options 1223 tools/crm_resource.c } else if (options.rsc_cmd != cmd_execute_agent) { options 1231 tools/crm_resource.c } else if (pcmk__str_eq(options.v_class, "stonith", pcmk__str_none)) { options 1232 tools/crm_resource.c if (options.v_provider != NULL) { options 1236 tools/crm_resource.c } else if (stonith_agent_exists(options.v_agent, 0) == FALSE) { options 1238 tools/crm_resource.c _("%s is not a known stonith agent"), options.v_agent ? options.v_agent : ""); options 1241 tools/crm_resource.c } else if (resources_agent_exists(options.v_class, options.v_provider, options.v_agent) == FALSE) { options 1244 tools/crm_resource.c options.v_class ? options.v_class : "", options 1245 tools/crm_resource.c options.v_provider ? options.v_provider : "", options 1246 tools/crm_resource.c options.v_agent ? options.v_agent : ""); options 1249 tools/crm_resource.c if ((error == NULL) && (options.cmdline_params == NULL)) { options 1250 tools/crm_resource.c options.cmdline_params = pcmk__strkey_table(free, free); options 1263 tools/crm_resource.c switch (options.rsc_cmd) { options 1302 tools/crm_resource.c switch (options.rsc_cmd) { options 1321 tools/crm_resource.c if (options.cmdline_config) { options 1325 tools/crm_resource.c switch (options.rsc_cmd) { options 1327 tools/crm_resource.c return !options.clear_expired; options 1360 tools/crm_resource.c if (options.cmdline_config) { options 1364 tools/crm_resource.c switch (options.rsc_cmd) { options 1386 tools/crm_resource.c switch (options.rsc_cmd) { options 1408 tools/crm_resource.c if (options.cmdline_config) { options 1418 tools/crm_resource.c switch (options.rsc_cmd) { options 1443 tools/crm_resource.c switch (options.rsc_cmd) { options 1462 tools/crm_resource.c { "resource", 'r', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, &options.rsc_id, options 1465 tools/crm_resource.c { G_OPTION_REMAINING, 0, G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING_ARRAY, &options.remainder, options 1570 tools/crm_resource.c if (options.clear_expired && (options.rsc_cmd != cmd_clear)) { options 1576 tools/crm_resource.c if ((options.remainder != NULL) && (options.override_params != NULL)) { options 1578 tools/crm_resource.c for (gchar **s = options.remainder; *s; s++) { options 1584 tools/crm_resource.c g_hash_table_replace(options.override_params, name, value); options 1597 tools/crm_resource.c } else if (options.remainder != NULL) { options 1603 tools/crm_resource.c for (gchar **s = options.remainder; *s; s++) { options 1615 tools/crm_resource.c for (gchar **s = options.remainder; *s; s++) { options 1637 tools/crm_resource.c switch (options.rsc_cmd) { options 1654 tools/crm_resource.c switch (options.rsc_cmd) { options 1669 tools/crm_resource.c if (options.cmdline_config) { options 1679 tools/crm_resource.c } else if (options.cmdline_params != NULL) { options 1681 tools/crm_resource.c g_hash_table_destroy(options.cmdline_params); options 1682 tools/crm_resource.c options.cmdline_params = NULL; options 1685 tools/crm_resource.c if (is_resource_required() && (options.rsc_id == NULL)) { options 1691 tools/crm_resource.c if (is_node_required() && (options.host_uname == NULL)) { options 1733 tools/crm_resource.c if ((find_flags != 0) && (options.rsc_id != NULL)) { options 1734 tools/crm_resource.c rsc = pe_find_resource_with_flags(scheduler->resources, options.rsc_id, options 1739 tools/crm_resource.c _("Resource '%s' not found"), options.rsc_id); options 1746 tools/crm_resource.c if (pcmk__is_clone(rsc->parent) && (strchr(options.rsc_id, ':') != NULL) options 1751 tools/crm_resource.c _("Cannot operate on clone resource instance '%s'"), options.rsc_id); options 1757 tools/crm_resource.c if ((options.host_uname != NULL) && (scheduler != NULL)) { options 1758 tools/crm_resource.c node = pcmk_find_node(scheduler, options.host_uname); options 1763 tools/crm_resource.c _("Node '%s' not found"), options.host_uname); options 1793 tools/crm_resource.c switch (options.rsc_cmd) { options 1823 tools/crm_resource.c rc = pcmk__list_alternatives(out, options.agent_spec); options 1827 tools/crm_resource.c rc = pcmk__list_agents(out, options.agent_spec); options 1835 tools/crm_resource.c rc = pcmk__list_providers(out, options.agent_spec); options 1839 tools/crm_resource.c rc = show_metadata(out, options.agent_spec); options 1848 tools/crm_resource.c rc = cli_resource_restart(out, rsc, node, options.move_lifetime, options 1849 tools/crm_resource.c options.timeout_ms, cib_conn, options 1850 tools/crm_resource.c cib_sync_call, options.promoted_role_only, options 1851 tools/crm_resource.c options.force); options 1855 tools/crm_resource.c rc = wait_till_stable(out, options.timeout_ms, cib_conn); options 1859 tools/crm_resource.c if (options.cmdline_config) { options 1861 tools/crm_resource.c options.v_class, options.v_provider, options.v_agent, options 1862 tools/crm_resource.c options.operation, options.cmdline_params, options 1863 tools/crm_resource.c options.override_params, options.timeout_ms, options 1864 tools/crm_resource.c args->verbosity, options.force, options.check_level); options 1866 tools/crm_resource.c exit_code = cli_resource_execute(rsc, options.rsc_id, options 1867 tools/crm_resource.c options.operation, options.override_params, options 1868 tools/crm_resource.c options.timeout_ms, cib_conn, scheduler, options 1869 tools/crm_resource.c args->verbosity, options.force, options.check_level); options 1874 tools/crm_resource.c node = pcmk_find_node(scheduler, options.host_uname); options 1879 tools/crm_resource.c options.override_params); options 1885 tools/crm_resource.c options.recursive, (bool) options.force); options 1896 tools/crm_resource.c rc = cli_resource_fail(controld_api, options.host_uname, options 1897 tools/crm_resource.c options.rsc_id, scheduler); options 1904 tools/crm_resource.c rc = cli_resource_print_operations(options.rsc_id, options 1905 tools/crm_resource.c options.host_uname, TRUE, options 1910 tools/crm_resource.c rc = cli_resource_print_operations(options.rsc_id, options 1911 tools/crm_resource.c options.host_uname, FALSE, options 1916 tools/crm_resource.c GList *nodes = cli_resource_search(rsc, options.rsc_id, scheduler); options 1917 tools/crm_resource.c rc = out->message(out, "resource-search-list", nodes, options.rsc_id); options 1931 tools/crm_resource.c if ((options.host_uname != NULL) && (node == NULL)) { options 1944 tools/crm_resource.c if (options.host_uname == NULL) { options 1945 tools/crm_resource.c rc = ban_or_move(out, rsc, options.move_lifetime); options 1947 tools/crm_resource.c rc = cli_resource_move(rsc, options.rsc_id, options.host_uname, options 1948 tools/crm_resource.c options.move_lifetime, cib_conn, options 1950 tools/crm_resource.c options.promoted_role_only, options 1951 tools/crm_resource.c options.force); options 1962 tools/crm_resource.c if (options.host_uname == NULL) { options 1963 tools/crm_resource.c rc = ban_or_move(out, rsc, options.move_lifetime); options 1967 tools/crm_resource.c rc = cli_resource_ban(out, options.rsc_id, node->details->uname, options 1968 tools/crm_resource.c options.move_lifetime, cib_conn, options 1969 tools/crm_resource.c cib_sync_call, options.promoted_role_only, options 1981 tools/crm_resource.c rc = out->message(out, "property-list", rsc, options.prop_name); options 2002 tools/crm_resource.c pcmk__s(options.prop_name, "unspecified property")); options 2006 tools/crm_resource.c crm_debug("Looking up %s in %s", options.prop_name, rsc->id); options 2008 tools/crm_resource.c if (pcmk__str_eq(options.attr_set_type, PCMK_XE_INSTANCE_ATTRIBUTES, options 2013 tools/crm_resource.c value = g_hash_table_lookup(params, options.prop_name); options 2015 tools/crm_resource.c } else if (pcmk__str_eq(options.attr_set_type, options 2020 tools/crm_resource.c value = g_hash_table_lookup(params, options.prop_name); options 2022 tools/crm_resource.c } else if (pcmk__str_eq(options.attr_set_type, ATTR_SET_ELEMENT, pcmk__str_none)) { options 2024 tools/crm_resource.c value = crm_element_value(rsc->xml, options.prop_name); options 2037 tools/crm_resource.c value = g_hash_table_lookup(params, options.prop_name); options 2040 tools/crm_resource.c rc = out->message(out, "attribute-list", rsc, options.prop_name, value); options 2049 tools/crm_resource.c if (pcmk__str_empty(options.prop_value)) { options 2057 tools/crm_resource.c rc = cli_resource_update_attribute(rsc, options.rsc_id, options 2058 tools/crm_resource.c options.prop_set, options 2059 tools/crm_resource.c options.attr_set_type, options 2060 tools/crm_resource.c options.prop_id, options 2061 tools/crm_resource.c options.prop_name, options 2062 tools/crm_resource.c options.prop_value, options 2063 tools/crm_resource.c options.recursive, cib_conn, options 2064 tools/crm_resource.c options.force); options 2069 tools/crm_resource.c rc = cli_resource_delete_attribute(rsc, options.rsc_id, options 2070 tools/crm_resource.c options.prop_set, options 2071 tools/crm_resource.c options.attr_set_type, options 2072 tools/crm_resource.c options.prop_id, options 2073 tools/crm_resource.c options.prop_name, cib_conn, options 2074 tools/crm_resource.c cib_sync_call, options.force); options 2079 tools/crm_resource.c rc = cli_cleanup_all(controld_api, options.host_uname, options 2080 tools/crm_resource.c options.operation, options.interval_spec, options 2102 tools/crm_resource.c if (options.rsc_type == NULL) { options 2109 tools/crm_resource.c options.rsc_id, options.rsc_type); options 2114 tools/crm_resource.c options.rsc_id, pcmk_rc_str(rc)); options 2123 tools/crm_resource.c _("Unimplemented command: %d"), (int) options.rsc_cmd); options 2157 tools/crm_resource.c g_free(options.host_uname); options 2158 tools/crm_resource.c g_free(options.interval_spec); options 2159 tools/crm_resource.c g_free(options.move_lifetime); options 2160 tools/crm_resource.c g_free(options.operation); options 2161 tools/crm_resource.c g_free(options.prop_id); options 2162 tools/crm_resource.c free(options.prop_name); options 2163 tools/crm_resource.c g_free(options.prop_set); options 2164 tools/crm_resource.c g_free(options.prop_value); options 2165 tools/crm_resource.c g_free(options.rsc_id); options 2166 tools/crm_resource.c g_free(options.rsc_type); options 2167 tools/crm_resource.c free(options.agent_spec); options 2168 tools/crm_resource.c free(options.v_agent); options 2169 tools/crm_resource.c free(options.v_class); options 2170 tools/crm_resource.c free(options.v_provider); options 2171 tools/crm_resource.c g_free(options.xml_file); options 2172 tools/crm_resource.c g_strfreev(options.remainder); options 2174 tools/crm_resource.c if (options.override_params != NULL) { options 2175 tools/crm_resource.c g_hash_table_destroy(options.override_params); options 41 tools/crm_rule.c } options = { options 56 tools/crm_rule.c { "xml-text", 'X', 0, G_OPTION_ARG_STRING, &options.input_xml, options 64 tools/crm_rule.c { "date", 'd', 0, G_OPTION_ARG_STRING, &options.date, options 67 tools/crm_rule.c { "rule", 'r', 0, G_OPTION_ARG_STRING_ARRAY, &options.rules, options 77 tools/crm_rule.c options.mode = crm_rule_mode_check; options 142 tools/crm_rule.c switch(options.mode) { options 144 tools/crm_rule.c if (options.rules == NULL) { options 160 tools/crm_rule.c rule_date = crm_time_new(options.date); options 162 tools/crm_rule.c if (options.date != NULL) { options 165 tools/crm_rule.c "Invalid date specified: '%s'", options.date); options 177 tools/crm_rule.c if (pcmk__str_eq(options.input_xml, "-", pcmk__str_none)) { options 186 tools/crm_rule.c } else if (options.input_xml != NULL) { options 187 tools/crm_rule.c input = pcmk__xml_parse(options.input_xml); options 192 tools/crm_rule.c "Couldn't parse input string: %s", options.input_xml); options 201 tools/crm_rule.c switch(options.mode) { options 204 tools/crm_rule.c (const char **) options.rules); options 80 tools/crm_shadow.c } options = { options 358 tools/crm_shadow.c && !pcmk__str_eq(active, options.instance, pcmk__str_null_matches)) { options 363 tools/crm_shadow.c reason, options.instance, active); options 388 tools/crm_shadow.c pcmk__str_update(&options.instance, getenv("CIB_shadow")); options 389 tools/crm_shadow.c if (options.instance == NULL) { options 415 tools/crm_shadow.c "exists", options.instance); options 428 tools/crm_shadow.c options.instance, strerror(errno)); options 487 tools/crm_shadow.c rc = real_cib->cmds->query(real_cib, NULL, output, options.cmd_options); options 544 tools/crm_shadow.c reset? "reset" : "create", options.instance, options 561 tools/crm_shadow.c return crm_strdup_printf("shadow[%.40s] # ", options.instance); options 581 tools/crm_shadow.c if (pcmk__str_eq(active, options.instance, pcmk__str_none) options 587 tools/crm_shadow.c if (!options.batch && (shell != NULL)) { options 590 tools/crm_shadow.c setenv("CIB_shadow", options.instance, 1); options 617 tools/crm_shadow.c prefix, options.instance); options 638 tools/crm_shadow.c if (pcmk__str_eq(active, options.instance, pcmk__str_none)) { options 673 tools/crm_shadow.c if (!options.force) { options 682 tools/crm_shadow.c filename = get_shadow_file(options.instance); options 697 tools/crm_shadow.c if (!options.full_upload) { options 703 tools/crm_shadow.c options.cmd_options); options 710 tools/crm_shadow.c options.instance, pcmk_rc_str(rc)); options 732 tools/crm_shadow.c char *filename = get_shadow_file(options.instance); options 735 tools/crm_shadow.c if (!options.force options 741 tools/crm_shadow.c crm_xml_add(output, PCMK_XA_VALIDATE_WITH, options.validate_with); options 771 tools/crm_shadow.c char *filename = get_shadow_file(options.instance); options 774 tools/crm_shadow.c if (!options.force) { options 783 tools/crm_shadow.c if (!pcmk__str_eq(local, options.instance, pcmk__str_null_matches)) { options 791 tools/crm_shadow.c options.instance, local); options 827 tools/crm_shadow.c if (!options.force) { options 836 tools/crm_shadow.c filename = get_shadow_file(options.instance); options 842 tools/crm_shadow.c options.instance, strerror(errno)); options 867 tools/crm_shadow.c filename = get_shadow_file(options.instance); options 906 tools/crm_shadow.c filename = get_shadow_file(options.instance); options 918 tools/crm_shadow.c options.instance, NULL, output, NULL, shadow_disp_content); options 948 tools/crm_shadow.c filename = get_shadow_file(options.instance); options 969 tools/crm_shadow.c options.instance, NULL, NULL, diff, shadow_disp_diff); options 998 tools/crm_shadow.c char *filename = get_shadow_file(options.instance); options 1003 tools/crm_shadow.c options.instance, filename, NULL, NULL, shadow_disp_file); options 1025 tools/crm_shadow.c options.instance, NULL, NULL, NULL, shadow_disp_instance); options 1042 tools/crm_shadow.c filename = get_shadow_file(options.instance); options 1054 tools/crm_shadow.c options.cmd = shadow_cmd_which; options 1057 tools/crm_shadow.c options.cmd = shadow_cmd_display; options 1060 tools/crm_shadow.c options.cmd = shadow_cmd_diff; options 1063 tools/crm_shadow.c options.cmd = shadow_cmd_file; options 1066 tools/crm_shadow.c options.cmd = shadow_cmd_create; options 1069 tools/crm_shadow.c options.cmd = shadow_cmd_create_empty; options 1072 tools/crm_shadow.c options.cmd = shadow_cmd_commit; options 1075 tools/crm_shadow.c options.cmd = shadow_cmd_delete; options 1078 tools/crm_shadow.c options.cmd = shadow_cmd_edit; options 1081 tools/crm_shadow.c options.cmd = shadow_cmd_reset; options 1084 tools/crm_shadow.c options.cmd = shadow_cmd_switch; options 1092 tools/crm_shadow.c pcmk__str_update(&options.instance, optarg); options 1143 tools/crm_shadow.c { "force", 'f', G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE, &options.force, options 1146 tools/crm_shadow.c { "batch", 'b', G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE, &options.batch, options 1149 tools/crm_shadow.c { "all", 'a', G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE, &options.full_upload, options 1153 tools/crm_shadow.c &options.validate_with, options 1248 tools/crm_shadow.c if (options.cmd == shadow_cmd_none) { options 1262 tools/crm_shadow.c cib__set_call_options(options.cmd_options, crm_system_name, options 1267 tools/crm_shadow.c switch (options.cmd) { options 1312 tools/crm_shadow.c free(options.instance); options 1313 tools/crm_shadow.c g_free(options.validate_with); options 50 tools/crm_simulate.c } options = { options 70 tools/crm_simulate.c options.flags |= pcmk_sim_all_actions; options 88 tools/crm_simulate.c options.store = TRUE; options 89 tools/crm_simulate.c options.flags |= pcmk_sim_process | pcmk_sim_simulate; options 95 tools/crm_simulate.c if (options.xml_file) { options 96 tools/crm_simulate.c free(options.xml_file); options 99 tools/crm_simulate.c options.xml_file = NULL; options 100 tools/crm_simulate.c options.flags &= ~pcmk_sim_sanitized; options 106 tools/crm_simulate.c options.injections->node_down = g_list_append(options.injections->node_down, g_strdup(optarg)); options 112 tools/crm_simulate.c options.injections->node_fail = g_list_append(options.injections->node_fail, g_strdup(optarg)); options 119 tools/crm_simulate.c options.injections->node_up = g_list_append(options.injections->node_up, g_strdup(optarg)); options 125 tools/crm_simulate.c options.flags |= pcmk_sim_process | pcmk_sim_simulate; options 126 tools/crm_simulate.c options.injections->op_fail = g_list_append(options.injections->op_fail, g_strdup(optarg)); options 132 tools/crm_simulate.c options.injections->op_inject = g_list_append(options.injections->op_inject, g_strdup(optarg)); options 138 tools/crm_simulate.c options.flags |= pcmk_sim_show_pending; options 144 tools/crm_simulate.c options.flags |= pcmk_sim_process; options 150 tools/crm_simulate.c pcmk__str_update(&options.injections->quorum, optarg); options 156 tools/crm_simulate.c options.flags |= pcmk_sim_process; options 157 tools/crm_simulate.c pcmk__str_update(&options.dot_file, optarg); options 163 tools/crm_simulate.c options.flags |= pcmk_sim_process; options 164 tools/crm_simulate.c pcmk__str_update(&options.graph_file, optarg); options 170 tools/crm_simulate.c options.flags |= pcmk_sim_process | pcmk_sim_show_scores; options 176 tools/crm_simulate.c options.flags |= pcmk_sim_process | pcmk_sim_simulate; options 182 tools/crm_simulate.c options.injections->ticket_activate = g_list_append(options.injections->ticket_activate, g_strdup(optarg)); options 188 tools/crm_simulate.c options.injections->ticket_grant = g_list_append(options.injections->ticket_grant, g_strdup(optarg)); options 194 tools/crm_simulate.c options.injections->ticket_revoke = g_list_append(options.injections->ticket_revoke, g_strdup(optarg)); options 200 tools/crm_simulate.c options.injections->ticket_standby = g_list_append(options.injections->ticket_standby, g_strdup(optarg)); options 206 tools/crm_simulate.c options.flags |= pcmk_sim_process | pcmk_sim_show_utilization; options 212 tools/crm_simulate.c pcmk__str_update(&options.injections->watchdog, optarg); options 218 tools/crm_simulate.c pcmk__str_update(&options.xml_file, optarg); options 219 tools/crm_simulate.c options.flags |= pcmk_sim_sanitized; options 225 tools/crm_simulate.c pcmk__str_update(&options.xml_file, "-"); options 226 tools/crm_simulate.c options.flags |= pcmk_sim_sanitized; options 252 tools/crm_simulate.c { "profile", 'P', 0, G_OPTION_ARG_FILENAME, &options.test_dir, options 255 tools/crm_simulate.c { "repeat", 'N', 0, G_OPTION_ARG_INT, &options.repeat, options 286 tools/crm_simulate.c { "set-datetime", 't', 0, G_OPTION_ARG_STRING, &options.use_date, options 312 tools/crm_simulate.c { "save-input", 'I', 0, G_OPTION_ARG_FILENAME, &options.input_file, options 315 tools/crm_simulate.c { "save-output", 'O', 0, G_OPTION_ARG_FILENAME, &options.output_file, options 469 tools/crm_simulate.c options.injections = calloc(1, sizeof(pcmk_injections_t)); options 470 tools/crm_simulate.c if (options.injections == NULL) { options 476 tools/crm_simulate.c options.xml_file = strdup("-"); options 495 tools/crm_simulate.c !(pcmk_is_set(options.flags, pcmk_sim_show_scores) && args->quiet)) { options 510 tools/crm_simulate.c options.flags |= pcmk_sim_verbose; options 527 tools/crm_simulate.c if (pcmk_is_set(options.flags, pcmk_sim_show_scores)) { options 530 tools/crm_simulate.c if (pcmk_is_set(options.flags, pcmk_sim_show_utilization)) { options 535 tools/crm_simulate.c if (options.test_dir != NULL) { options 537 tools/crm_simulate.c pcmk__profile_dir(options.test_dir, options.repeat, scheduler, options 538 tools/crm_simulate.c options.use_date); options 543 tools/crm_simulate.c rc = setup_input(out, options.xml_file, options 544 tools/crm_simulate.c options.store? options.xml_file : options.output_file, options 550 tools/crm_simulate.c rc = pcmk__simulate(scheduler, out, options.injections, options.flags, options 551 tools/crm_simulate.c section_opts, options.use_date, options.input_file, options 552 tools/crm_simulate.c options.graph_file, options.dot_file); options 558 tools/crm_simulate.c free(options.dot_file); options 559 tools/crm_simulate.c free(options.graph_file); options 560 tools/crm_simulate.c g_free(options.input_file); options 561 tools/crm_simulate.c g_free(options.output_file); options 562 tools/crm_simulate.c g_free(options.test_dir); options 563 tools/crm_simulate.c free(options.use_date); options 564 tools/crm_simulate.c free(options.xml_file); options 566 tools/crm_simulate.c pcmk_free_injections(options.injections); options 54 tools/crm_ticket.c } options = { options 75 tools/crm_ticket.c pcmk__str_update(&options.attr_value, optarg); options 77 tools/crm_ticket.c if (!options.attr_name || !options.attr_value) { options 81 tools/crm_ticket.c pcmk__insert_dup(attr_set, options.attr_name, options.attr_value); options 82 tools/crm_ticket.c pcmk__str_update(&options.attr_name, NULL); options 83 tools/crm_ticket.c pcmk__str_update(&options.attr_value, NULL); options 93 tools/crm_ticket.c options.ticket_cmd = 'l'; options 95 tools/crm_ticket.c options.ticket_cmd = 'L'; options 97 tools/crm_ticket.c options.ticket_cmd = 'w'; options 99 tools/crm_ticket.c options.ticket_cmd = 'q'; options 101 tools/crm_ticket.c options.ticket_cmd = 'c'; options 103 tools/crm_ticket.c options.ticket_cmd = 'C'; options 118 tools/crm_ticket.c pcmk__str_update(&options.get_attr_name, optarg); options 119 tools/crm_ticket.c options.ticket_cmd = 'G'; options 144 tools/crm_ticket.c pcmk__str_update(&options.attr_name, optarg); options 146 tools/crm_ticket.c if (!options.attr_name || !options.attr_value) { options 150 tools/crm_ticket.c pcmk__insert_dup(attr_set, options.attr_name, options.attr_value); options 151 tools/crm_ticket.c pcmk__str_update(&options.attr_name, NULL); options 152 tools/crm_ticket.c pcmk__str_update(&options.attr_value, NULL); options 228 tools/crm_ticket.c { "default", 'd', 0, G_OPTION_ARG_STRING, &options.attr_default, options 233 tools/crm_ticket.c { "force", 'f', 0, G_OPTION_ARG_NONE, &options.force, options 237 tools/crm_ticket.c { "ticket", 't', 0, G_OPTION_ARG_STRING, &options.ticket_id, options 241 tools/crm_ticket.c { "xml-file", 'x', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_STRING, &options.xml_file, options 249 tools/crm_ticket.c { "set-name", 'n', 0, G_OPTION_ARG_STRING, &options.set_name, options 253 tools/crm_ticket.c { "nvpair", 'i', 0, G_OPTION_ARG_STRING, &options.attr_id, options 257 tools/crm_ticket.c { "quiet", 'Q', 0, G_OPTION_ARG_NONE, &options.quiet, options 418 tools/crm_ticket.c if (options.xml_file != NULL) { options 419 tools/crm_ticket.c cib_xml_copy = pcmk__xml_read(options.xml_file); options 451 tools/crm_ticket.c if (options.ticket_cmd == 'l' || options.ticket_cmd == 'L' || options.ticket_cmd == 'w') { options 455 tools/crm_ticket.c if (options.ticket_cmd == 'L') { options 457 tools/crm_ticket.c } else if (options.ticket_cmd == 'w') { options 461 tools/crm_ticket.c rc = pcmk__ticket_info(out, scheduler, options.ticket_id, details, raw); options 466 tools/crm_ticket.c "No such ticket '%s'", options.ticket_id); options 472 tools/crm_ticket.c } else if (options.ticket_cmd == 'q') { options 473 tools/crm_ticket.c rc = pcmk__ticket_state(out, cib_conn, options.ticket_id); options 483 tools/crm_ticket.c } else if (options.ticket_cmd == 'c') { options 484 tools/crm_ticket.c rc = pcmk__ticket_constraints(out, cib_conn, options.ticket_id); options 492 tools/crm_ticket.c } else if (options.ticket_cmd == 'G') { options 493 tools/crm_ticket.c if (options.ticket_id == NULL) { options 500 tools/crm_ticket.c rc = pcmk__ticket_get_attr(out, scheduler, options.ticket_id, options 501 tools/crm_ticket.c options.get_attr_name, options.attr_default); options 504 tools/crm_ticket.c } else if (options.ticket_cmd == 'C') { options 505 tools/crm_ticket.c if (options.ticket_id == NULL) { options 512 tools/crm_ticket.c rc = pcmk__ticket_delete(out, cib_conn, scheduler, options.ticket_id, options 513 tools/crm_ticket.c options.force); options 519 tools/crm_ticket.c "No such ticket '%s'", options.ticket_id); options 523 tools/crm_ticket.c ticket_revoke_warning(options.ticket_id); options 537 tools/crm_ticket.c if (options.ticket_id == NULL) { options 544 tools/crm_ticket.c if (options.attr_value options 545 tools/crm_ticket.c && (pcmk__str_empty(options.attr_name))) { options 548 tools/crm_ticket.c "Must supply attribute name with -S for -v %s", options.attr_value); options 552 tools/crm_ticket.c if (options.attr_name options 553 tools/crm_ticket.c && (pcmk__str_empty(options.attr_value))) { options 556 tools/crm_ticket.c "Must supply attribute value with -v for -S %s", options.attr_value); options 561 tools/crm_ticket.c rc = pcmk__ticket_remove_attr(out, cib_conn, scheduler, options.ticket_id, options 562 tools/crm_ticket.c attr_delete, options.force); options 565 tools/crm_ticket.c ticket_revoke_warning(options.ticket_id); options 571 tools/crm_ticket.c rc = pcmk__ticket_set_attr(out, cib_conn, scheduler, options.ticket_id, options 572 tools/crm_ticket.c attr_set, options.force); options 579 tools/crm_ticket.c ticket_grant_warning(options.ticket_id); options 581 tools/crm_ticket.c ticket_revoke_warning(options.ticket_id); options 597 tools/crm_ticket.c } else if (options.ticket_cmd == 'S') { options 602 tools/crm_ticket.c if (pcmk__str_empty(options.attr_name)) { options 609 tools/crm_ticket.c if (options.ticket_id == NULL) { options 616 tools/crm_ticket.c if (pcmk__str_empty(options.attr_value)) { options 619 tools/crm_ticket.c "Must supply value with -v for -S %s", options.attr_name); options 626 tools/crm_ticket.c "Unknown command: %c", options.ticket_cmd); options 647 tools/crm_ticket.c g_free(options.attr_default); options 648 tools/crm_ticket.c g_free(options.attr_id); options 649 tools/crm_ticket.c free(options.attr_name); options 650 tools/crm_ticket.c free(options.attr_value); options 651 tools/crm_ticket.c free(options.get_attr_name); options 652 tools/crm_ticket.c g_free(options.set_name); options 653 tools/crm_ticket.c g_free(options.ticket_id); options 654 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 133 tools/crm_verify.c if (options.verbosity > 0) { options 157 tools/crm_verify.c if (options.verbosity > 0) { options 220 tools/crm_verify.c options.verbosity = args->verbosity; options 222 tools/crm_verify.c if (options.xml_file != NULL) { options 223 tools/crm_verify.c cib_source = options.xml_file; options 224 tools/crm_verify.c } else if (options.xml_string != NULL) { options 225 tools/crm_verify.c cib_source = options.xml_string; options 226 tools/crm_verify.c } else if (options.xml_stdin) { options 228 tools/crm_verify.c } else if (options.use_live_cib) { options 243 tools/crm_verify.c if (options.cib_save != NULL) { options 244 tools/crm_verify.c pcmk__xml_write_file(cib_object, options.cib_save, false, NULL); options 272 tools/crm_verify.c } else if (options.verbosity > 0) { options 285 tools/crm_verify.c free(options.cib_save); options 286 tools/crm_verify.c free(options.xml_file); options 287 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 return pcmk_parse_interval_spec(optarg, &options.timeout) == pcmk_rc_ok; options 123 tools/crmadmin.c pcmk__str_update(&options.optarg, optarg); options 209 tools/crmadmin.c if (options.health) { options 230 tools/crmadmin.c rc = pcmk__controller_status(out, options.optarg, options 231 tools/crmadmin.c (unsigned int) options.timeout); options 234 tools/crmadmin.c rc = pcmk__pacemakerd_status(out, options.ipc_name, options 235 tools/crmadmin.c (unsigned int) options.timeout, true, options 239 tools/crmadmin.c rc = pcmk__list_nodes(out, options.optarg, options.bash_export); options 243 tools/crmadmin.c (unsigned int) options.timeout); options 25 tools/iso8601.c } options; options 32 tools/iso8601.c pcmk__str_update(&options.date_time_s, "now"); options 34 tools/iso8601.c pcmk__str_update(&options.date_time_s, optarg); options 43 tools/iso8601.c options.print_options |= crm_time_seconds; options 45 tools/iso8601.c options.print_options |= crm_time_epoch; options 47 tools/iso8601.c options.print_options |= crm_time_log_with_timezone; options 49 tools/iso8601.c options.print_options |= crm_time_ordinal; options 51 tools/iso8601.c options.print_options |= crm_time_weeks; options 67 tools/iso8601.c { "period", 'p', 0, G_OPTION_ARG_STRING, &options.period_s, options 72 tools/iso8601.c { "duration", 'D', 0, G_OPTION_ARG_STRING, &options.duration_s, options 76 tools/iso8601.c { "expected", 'E', 0, G_OPTION_ARG_STRING, &options.expected_s, options 165 tools/iso8601.c if (pcmk__str_eq("now", options.date_time_s, pcmk__str_casei)) { options 178 tools/iso8601.c options.print_options | crm_time_log_date | crm_time_log_timeofday); options 180 tools/iso8601.c } else if (options.date_time_s) { options 181 tools/iso8601.c date_time = crm_time_new(options.date_time_s); options 186 tools/iso8601.c "Invalid date/time specified: %s", options.date_time_s); options 193 tools/iso8601.c options.print_options | crm_time_log_date | crm_time_log_timeofday); options 196 tools/iso8601.c if (options.duration_s) { options 197 tools/iso8601.c duration = crm_time_parse_duration(options.duration_s); options 202 tools/iso8601.c "Invalid duration specified: %s", options.duration_s); options 208 tools/iso8601.c options.print_options | crm_time_log_duration); options 211 tools/iso8601.c if (options.period_s) { options 212 tools/iso8601.c crm_time_period_t *period = crm_time_parse_period(options.period_s); options 217 tools/iso8601.c "Invalid interval specified: %s", options.period_s); options 222 tools/iso8601.c options.print_options | crm_time_log_date | crm_time_log_timeofday); options 224 tools/iso8601.c options.print_options | crm_time_log_date | crm_time_log_timeofday); options 235 tools/iso8601.c options.date_time_s, options.duration_s); options 242 tools/iso8601.c options.print_options | crm_time_log_date | crm_time_log_timeofday | options 245 tools/iso8601.c if (options.expected_s) { options 247 tools/iso8601.c options.print_options | crm_time_log_date | options 249 tools/iso8601.c if (!pcmk__str_eq(options.expected_s, dt_s, pcmk__str_casei)) { options 257 tools/iso8601.c } else if (date_time && options.expected_s) { options 259 tools/iso8601.c options.print_options | crm_time_log_date | crm_time_log_timeofday); options 261 tools/iso8601.c if (!pcmk__str_eq(options.expected_s, dt_s, pcmk__str_casei)) { options 275 tools/iso8601.c free(options.date_time_s); options 276 tools/iso8601.c g_free(options.duration_s); options 277 tools/iso8601.c g_free(options.expected_s); options 278 tools/iso8601.c g_free(options.period_s); options 71 tools/stonith_admin.c } options = { options 86 tools/stonith_admin.c { "register", 'R', 0, G_OPTION_ARG_STRING, &options.register_dev, options 90 tools/stonith_admin.c { "deregister", 'D', 0, G_OPTION_ARG_STRING, &options.unregister_dev, options 93 tools/stonith_admin.c { "register-level", 'r', 0, G_OPTION_ARG_STRING, &options.register_level, options 98 tools/stonith_admin.c { "deregister-level", 'd', 0, G_OPTION_ARG_STRING, &options.unregister_level, options 107 tools/stonith_admin.c { "list", 'l', 0, G_OPTION_ARG_STRING, &options.terminate, options 111 tools/stonith_admin.c { "list-registered", 'L', 0, G_OPTION_ARG_NONE, &options.registered, options 114 tools/stonith_admin.c { "list-installed", 'I', 0, G_OPTION_ARG_NONE, &options.installed, options 117 tools/stonith_admin.c { "list-targets", 's', 0, G_OPTION_ARG_STRING, &options.targets, options 121 tools/stonith_admin.c { "metadata", 'M', 0, G_OPTION_ARG_NONE, &options.metadata, options 125 tools/stonith_admin.c { "query", 'Q', 0, G_OPTION_ARG_STRING, &options.query, options 128 tools/stonith_admin.c { "history", 'H', 0, G_OPTION_ARG_STRING, &options.history, options 135 tools/stonith_admin.c { "last", 'h', 0, G_OPTION_ARG_STRING, &options.last_fenced, options 139 tools/stonith_admin.c { "validate", 'K', 0, G_OPTION_ARG_NONE, &options.validate_cfg, options 149 tools/stonith_admin.c { "fence", 'F', 0, G_OPTION_ARG_STRING, &options.fence_host, options 152 tools/stonith_admin.c { "unfence", 'U', 0, G_OPTION_ARG_STRING, &options.unfence_host, options 155 tools/stonith_admin.c { "reboot", 'B', 0, G_OPTION_ARG_STRING, &options.reboot_host, options 158 tools/stonith_admin.c { "confirm", 'C', 0, G_OPTION_ARG_STRING, &options.confirm_host, options 166 tools/stonith_admin.c { "cleanup", 'c', 0, G_OPTION_ARG_NONE, &options.cleanup, options 169 tools/stonith_admin.c { "broadcast", 'b', 0, G_OPTION_ARG_NONE, &options.broadcast, options 172 tools/stonith_admin.c { "agent", 'a', 0, G_OPTION_ARG_STRING, &options.agent, options 201 tools/stonith_admin.c { "index", 'i', 0, G_OPTION_ARG_INT, &options.fence_level, options 205 tools/stonith_admin.c { "timeout", 't', 0, G_OPTION_ARG_INT, &options.timeout, options 209 tools/stonith_admin.c { "delay", 'y', 0, G_OPTION_ARG_INT, &options.delay, options 215 tools/stonith_admin.c { "as-node-id", 'n', 0, G_OPTION_ARG_NONE, &options.as_nodeid, options 252 tools/stonith_admin.c options.params = stonith_key_value_add(options.params, optarg, env); options 261 tools/stonith_admin.c options.devices = stonith_key_value_add(options.devices, NULL, optarg); options 268 tools/stonith_admin.c options.tolerance_ms = crm_get_msec(optarg); options 270 tools/stonith_admin.c if (options.tolerance_ms < 0) { options 272 tools/stonith_admin.c options.tolerance_ms = 0; options 274 tools/stonith_admin.c options.tolerance_ms = QB_MIN(options.tolerance_ms, UINT_MAX); options 296 tools/stonith_admin.c options.params = stonith_key_value_add(options.params, name, value); options 348 tools/stonith_admin.c options.timeout * 1000, options 349 tools/stonith_admin.c options.tolerance_ms, options.delay, options 427 tools/stonith_admin.c if (options.validate_cfg) { options 433 tools/stonith_admin.c if (options.installed) { options 438 tools/stonith_admin.c if (options.registered) { options 442 tools/stonith_admin.c if (options.register_dev != NULL) { options 445 tools/stonith_admin.c device = options.register_dev; options 448 tools/stonith_admin.c if (options.query != NULL) { options 450 tools/stonith_admin.c device = options.query; options 453 tools/stonith_admin.c if (options.unregister_dev != NULL) { options 455 tools/stonith_admin.c device = options.unregister_dev; options 458 tools/stonith_admin.c if (options.targets != NULL) { options 460 tools/stonith_admin.c device = options.targets; options 463 tools/stonith_admin.c if (options.terminate != NULL) { options 465 tools/stonith_admin.c target = options.terminate; options 468 tools/stonith_admin.c if (options.metadata) { options 474 tools/stonith_admin.c if (options.reboot_host != NULL) { options 477 tools/stonith_admin.c target = options.reboot_host; options 481 tools/stonith_admin.c if (options.fence_host != NULL) { options 484 tools/stonith_admin.c target = options.fence_host; options 488 tools/stonith_admin.c if (options.unfence_host != NULL) { options 491 tools/stonith_admin.c target = options.unfence_host; options 495 tools/stonith_admin.c if (options.confirm_host != NULL) { options 497 tools/stonith_admin.c target = options.confirm_host; options 501 tools/stonith_admin.c if (options.last_fenced != NULL) { options 503 tools/stonith_admin.c target = options.last_fenced; options 506 tools/stonith_admin.c if (options.history != NULL) { options 508 tools/stonith_admin.c target = options.history; options 511 tools/stonith_admin.c if (options.register_level != NULL) { options 513 tools/stonith_admin.c target = options.register_level; options 516 tools/stonith_admin.c if (options.unregister_level != NULL) { options 518 tools/stonith_admin.c target = options.unregister_level; options 530 tools/stonith_admin.c if (required_agent && options.agent == NULL) { options 556 tools/stonith_admin.c rc = pcmk__fence_installed(out, st, options.timeout*1000); options 564 tools/stonith_admin.c rc = pcmk__fence_registered(out, st, target, options.timeout*1000); options 572 tools/stonith_admin.c rc = st->cmds->monitor(st, st_opts, device, options.timeout); options 574 tools/stonith_admin.c rc = st->cmds->list(st, st_opts, device, NULL, options.timeout); options 580 tools/stonith_admin.c rc = pcmk__fence_list_targets(out, st, device, options.timeout*1000); options 588 tools/stonith_admin.c rc = st->cmds->register_device(st, st_opts, device, NULL, options.agent, options 589 tools/stonith_admin.c options.params); options 593 tools/stonith_admin.c device, options.agent, pcmk_rc_str(rc)); options 607 tools/stonith_admin.c rc = pcmk__fence_unregister_level(st, target, options.fence_level); options 610 tools/stonith_admin.c options.fence_level, target, pcmk_rc_str(rc)); options 615 tools/stonith_admin.c rc = pcmk__fence_register_level(st, target, options.fence_level, options.devices); options 618 tools/stonith_admin.c options.fence_level, target, pcmk_rc_str(rc)); options 623 tools/stonith_admin.c rc = pcmk__fence_metadata(out, st, options.agent, options.timeout*1000); options 649 tools/stonith_admin.c rc = pcmk__fence_last(out, target, options.as_nodeid); options 653 tools/stonith_admin.c rc = pcmk__fence_history(out, st, target, options.timeout*1000, args->verbosity, options 654 tools/stonith_admin.c options.broadcast, options.cleanup); options 658 tools/stonith_admin.c device = options.devices ? options.devices->key : NULL; options 659 tools/stonith_admin.c rc = pcmk__fence_validate(out, st, options.agent, device, options.params, options 660 tools/stonith_admin.c options.timeout*1000); options 679 tools/stonith_admin.c stonith_key_value_freeall(options.params, 1, 1);