st 19 daemons/controld/controld_fencing.c tengine_stonith_history_synced(stonith_t *st, stonith_event_t *st_event); st 409 daemons/controld/controld_fencing.c tengine_stonith_connection_destroy(stonith_t *st, stonith_event_t *e) st 411 daemons/controld/controld_fencing.c te_cleanup_stonith_history_sync(st, FALSE); st 426 daemons/controld/controld_fencing.c stonith_api->cmds->disconnect(st); st 440 daemons/controld/controld_fencing.c tengine_stonith_notify(stonith_t *st, stonith_event_t *st_event) st 889 daemons/controld/controld_fencing.c te_cleanup_stonith_history_sync(stonith_t *st, bool free_timers) st 901 daemons/controld/controld_fencing.c if (st) { st 902 daemons/controld/controld_fencing.c st->cmds->remove_notification(st, T_STONITH_NOTIFY_HISTORY_SYNCED); st 907 daemons/controld/controld_fencing.c tengine_stonith_history_synced(stonith_t *st, stonith_event_t *st_event) st 909 daemons/controld/controld_fencing.c te_cleanup_stonith_history_sync(st, FALSE); st 36 daemons/controld/controld_fencing.h void te_cleanup_stonith_history_sync(stonith_t *st, bool free_timers); st 47 daemons/execd/pacemaker-execd.c stonith_connection_destroy_cb(stonith_t * st, stonith_event_t * e) st 89 daemons/fenced/cts-fence-helper.c static stonith_t *st = NULL; st 105 daemons/fenced/cts-fence-helper.c if (!stonith_dispatch(st)) { st 115 daemons/fenced/cts-fence-helper.c st_callback(stonith_t * st, stonith_event_t * e) st 117 daemons/fenced/cts-fence-helper.c if (st->state == stonith_disconnected) { st 142 daemons/fenced/cts-fence-helper.c rc = st->cmds->connect(st, crm_system_name, &pollfd.fd); st 144 daemons/fenced/cts-fence-helper.c stonith_api_delete(st); st 147 daemons/fenced/cts-fence-helper.c st->cmds->register_notification(st, T_STONITH_NOTIFY_DISCONNECT, st_callback); st 148 daemons/fenced/cts-fence-helper.c st->cmds->register_notification(st, T_STONITH_NOTIFY_FENCE, st_callback); st 149 daemons/fenced/cts-fence-helper.c st->cmds->register_notification(st, STONITH_OP_DEVICE_ADD, st_callback); st 150 daemons/fenced/cts-fence-helper.c st->cmds->register_notification(st, STONITH_OP_DEVICE_DEL, st_callback); st 151 daemons/fenced/cts-fence-helper.c st->cmds->register_callback(st, 0, 120, st_opt_timeout_updates, NULL, "st_global_callback", st 190 daemons/fenced/cts-fence-helper.c single_test(st-> st 191 daemons/fenced/cts-fence-helper.c cmds->register_device(st, st_opts, "test-id1", "stonith-ng", "fence_dummy", params), st 194 daemons/fenced/cts-fence-helper.c single_test(st->cmds->fence(st, st_opts, "false_1_node2", "off", 3, 0), st 197 daemons/fenced/cts-fence-helper.c single_test(st->cmds->fence(st, st_opts, "false_1_node2", "reboot", 3, 0), st 200 daemons/fenced/cts-fence-helper.c single_test(st->cmds->remove_device(st, st_opts, "test-id1"), st 214 daemons/fenced/cts-fence-helper.c single_test(st-> st 215 daemons/fenced/cts-fence-helper.c cmds->register_device(st, st_opts, "test-id1", "stonith-ng", "fence_dummy", params), st 222 daemons/fenced/cts-fence-helper.c single_test(st-> st 223 daemons/fenced/cts-fence-helper.c cmds->register_device(st, st_opts, "test-id2", "stonith-ng", "fence_dummy", params), st 226 daemons/fenced/cts-fence-helper.c single_test(st->cmds->fence(st, st_opts, "false_1_node2", "off", 3, 0), st 230 daemons/fenced/cts-fence-helper.c single_test(st->cmds->fence(st, st_opts, "false_1_node2", "on", 3, 0), st 233 daemons/fenced/cts-fence-helper.c single_test(st->cmds->remove_device(st, st_opts, "test-id1"), st 236 daemons/fenced/cts-fence-helper.c single_test(st->cmds->remove_device(st, st_opts, "test-id2"), st 251 daemons/fenced/cts-fence-helper.c single_test(st-> st 252 daemons/fenced/cts-fence-helper.c cmds->register_device(st, st_opts, "test-id", "stonith-ng", "fence_dummy", params), st 257 daemons/fenced/cts-fence-helper.c single_test(st->cmds->list(st, st_opts, "test-id", NULL, 1), "list", 1, 0); st 259 daemons/fenced/cts-fence-helper.c single_test(st->cmds->monitor(st, st_opts, "test-id", 1), "Monitor", 1, 0); st 261 daemons/fenced/cts-fence-helper.c single_test(st->cmds->status(st, st_opts, "test-id", "false_1_node2", 1), st 264 daemons/fenced/cts-fence-helper.c single_test(st->cmds->status(st, st_opts, "test-id", "false_1_node1", 1), st 267 daemons/fenced/cts-fence-helper.c single_test(st->cmds->fence(st, st_opts, "unknown-host", "off", 1, 0), st 270 daemons/fenced/cts-fence-helper.c single_test(st->cmds->fence(st, st_opts, "false_1_node1", "off", 1, 0), st 274 daemons/fenced/cts-fence-helper.c single_test(st->cmds->fence(st, st_opts, "false_1_node1", "on", 1, 0), st 278 daemons/fenced/cts-fence-helper.c single_test(st->cmds->register_level(st, st_opts, "node1", 999, params), st 281 daemons/fenced/cts-fence-helper.c single_test(st->cmds->remove_device(st, st_opts, "test-id"), "Remove test-id", 1, 0); st 291 daemons/fenced/cts-fence-helper.c rc = st->cmds->connect(st, crm_system_name, &pollfd.fd); st 293 daemons/fenced/cts-fence-helper.c stonith_api_delete(st); st 296 daemons/fenced/cts-fence-helper.c st->cmds->register_notification(st, T_STONITH_NOTIFY_DISCONNECT, st_callback); st 297 daemons/fenced/cts-fence-helper.c st->cmds->register_notification(st, T_STONITH_NOTIFY_FENCE, st_callback); st 298 daemons/fenced/cts-fence-helper.c st->cmds->register_notification(st, STONITH_OP_DEVICE_ADD, st_callback); st 299 daemons/fenced/cts-fence-helper.c st->cmds->register_notification(st, STONITH_OP_DEVICE_DEL, st_callback); st 300 daemons/fenced/cts-fence-helper.c st->cmds->register_callback(st, 0, 120, st_opt_timeout_updates, NULL, "st_global_callback", st 317 daemons/fenced/cts-fence-helper.c rc = st->cmds->connect(st, crm_system_name, &pollfd.fd); st 319 daemons/fenced/cts-fence-helper.c stonith_api_delete(st); st 325 daemons/fenced/cts-fence-helper.c rc = st->cmds->register_device(st, st_opts, "test-id", "stonith-ng", "fence_xvm", params); st 328 daemons/fenced/cts-fence-helper.c rc = st->cmds->list(st, st_opts, "test-id", &tmp, 10); st 331 daemons/fenced/cts-fence-helper.c rc = st->cmds->monitor(st, st_opts, "test-id", 10); st 334 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node2", 10); st 337 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); st 340 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, st_opts, "unknown-host", "off", 60, 0); st 343 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); st 346 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, st_opts, "false_1_node1", "off", 60, 0); st 349 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); st 352 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, st_opts, "false_1_node1", "on", 10, 0); st 355 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); st 358 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, st_opts, "some-host", "off", 10, 0); st 361 daemons/fenced/cts-fence-helper.c rc = st->cmds->status(st, st_opts, "test-id", "some-host", 10); st 364 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, st_opts, "false_1_node1", "on", 10, 0); st 367 daemons/fenced/cts-fence-helper.c rc = st->cmds->remove_device(st, st_opts, "test-id"); st 386 daemons/fenced/cts-fence-helper.c return st->cmds->register_callback(st, st 406 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, 0, "true_1_node1", "off", MAINLOOP_DEFAULT_TIMEOUT, 0); st 439 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, 0, "custom_timeout_node1", "off", MAINLOOP_DEFAULT_TIMEOUT, 0); st 462 daemons/fenced/cts-fence-helper.c rc = st->cmds->fence(st, 0, "false_1_node2", "off", MAINLOOP_DEFAULT_TIMEOUT, 0); st 485 daemons/fenced/cts-fence-helper.c rc = st->cmds->monitor(st, 0, "false_1", MAINLOOP_DEFAULT_TIMEOUT); st 503 daemons/fenced/cts-fence-helper.c st->cmds->register_device(st, st_opts, "false_1", "stonith-ng", "fence_dummy", params); st 509 daemons/fenced/cts-fence-helper.c st->cmds->register_device(st, st_opts, "true_1", "stonith-ng", "fence_dummy", params); st 518 daemons/fenced/cts-fence-helper.c st->cmds->register_device(st, st_opts, "false_custom_timeout", "stonith-ng", "fence_dummy", st 528 daemons/fenced/cts-fence-helper.c int rc = stonith_api_connect_retry(st, crm_system_name, 10); st 571 daemons/fenced/cts-fence-helper.c if (st) { st 572 daemons/fenced/cts-fence-helper.c rc = st->cmds->disconnect(st); st 576 daemons/fenced/cts-fence-helper.c stonith_api_delete(st); st 650 daemons/fenced/cts-fence-helper.c st = stonith_api_new(); st 651 daemons/fenced/cts-fence-helper.c if (st == NULL) { st 689 daemons/fenced/fenced_commands.c stonith_t *st = stonith_api_new(); st 692 daemons/fenced/fenced_commands.c if (st == NULL) { st 697 daemons/fenced/fenced_commands.c rc = st->cmds->metadata(st, st_opt_sync_call, agent, NULL, &buffer, 10); st 698 daemons/fenced/fenced_commands.c stonith_api_delete(st); st 209 include/crm/common/ipc_internal.h #define pcmk__ipc_send_ack(c, req, flags, tag, st) \ st 210 include/crm/common/ipc_internal.h pcmk__ipc_send_ack_as(__func__, __LINE__, (c), (req), (flags), (tag), (st)) st 183 include/crm/fencing/internal.h int stonith__lha_validate(stonith_t *st, int call_options, const char *target, st 192 include/crm/fencing/internal.h int stonith__rhcs_validate(stonith_t *st, int call_options, const char *target, st 143 include/crm/stonith-ng.h int (*free) (stonith_t *st); st 151 include/crm/stonith-ng.h int (*connect) (stonith_t *st, const char *name, int *stonith_fd); st 159 include/crm/stonith-ng.h int (*disconnect)(stonith_t *st); st 170 include/crm/stonith-ng.h stonith_t *st, int options, const char *name); st 181 include/crm/stonith-ng.h stonith_t *st, int options, const char *id, st 191 include/crm/stonith-ng.h stonith_t *st, int options, const char *node, int level); st 201 include/crm/stonith-ng.h stonith_t *st, int options, const char *node, int level, stonith_key_value_t *device_list); st 211 include/crm/stonith-ng.h int (*metadata)(stonith_t *st, int options, st 233 include/crm/stonith-ng.h int (*list)(stonith_t *st, int options, const char *id, char **list_output, int timeout); st 241 include/crm/stonith-ng.h int (*monitor)(stonith_t *st, int options, const char *id, int timeout); st 249 include/crm/stonith-ng.h int (*status)(stonith_t *st, int options, const char *id, const char *port, int timeout); st 260 include/crm/stonith-ng.h int (*query)(stonith_t *st, int options, const char *node, st 278 include/crm/stonith-ng.h int (*fence)(stonith_t *st, int options, const char *node, const char *action, st 287 include/crm/stonith-ng.h int (*confirm)(stonith_t *st, int options, const char *node); st 295 include/crm/stonith-ng.h int (*history)(stonith_t *st, int options, const char *node, stonith_history_t **output, int timeout); st 298 include/crm/stonith-ng.h stonith_t *st, const char *event, st 299 include/crm/stonith-ng.h void (*notify)(stonith_t *st, stonith_event_t *e)); st 300 include/crm/stonith-ng.h int (*remove_notification)(stonith_t *st, const char *event); st 319 include/crm/stonith-ng.h int (*register_callback)(stonith_t *st, st 325 include/crm/stonith-ng.h void (*callback)(stonith_t *st, stonith_callback_data_t *data)); st 330 include/crm/stonith-ng.h int (*remove_callback)(stonith_t *st, int call_id, bool all_callbacks); st 347 include/crm/stonith-ng.h int (*remove_level_full)(stonith_t *st, int options, st 367 include/crm/stonith-ng.h int (*register_level_full)(stonith_t *st, int options, st 390 include/crm/stonith-ng.h int (*validate)(stonith_t *st, int call_options, const char *rsc_id, st 412 include/crm/stonith-ng.h int (*fence_with_delay)(stonith_t *st, int options, const char *node, const char *action, st 431 include/crm/stonith-ng.h void stonith_api_delete(stonith_t * st); st 433 include/crm/stonith-ng.h void stonith_dump_pending_callbacks(stonith_t * st); st 435 include/crm/stonith-ng.h bool stonith_dispatch(stonith_t * st); st 444 include/crm/stonith-ng.h int stonith_api_connect_retry(stonith_t *st, const char *name, st 44 include/pacemaker.h int pcmk_fence_action(stonith_t *st, const char *target, const char *action, st 65 include/pacemaker.h int pcmk_fence_history(xmlNodePtr *xml, stonith_t *st, char *target, st 81 include/pacemaker.h int pcmk_fence_installed(xmlNodePtr *xml, stonith_t *st, unsigned int timeout); st 110 include/pacemaker.h int pcmk_fence_list_targets(xmlNodePtr *xml, stonith_t *st, st 126 include/pacemaker.h int pcmk_fence_metadata(xmlNodePtr *xml, stonith_t *st, char *agent, st 143 include/pacemaker.h int pcmk_fence_registered(xmlNodePtr *xml, stonith_t *st, char *target, st 161 include/pacemaker.h int pcmk_fence_register_level(stonith_t *st, char *target, int fence_level, st 178 include/pacemaker.h int pcmk_fence_unregister_level(stonith_t *st, char *target, int fence_level); st 195 include/pacemaker.h int pcmk_fence_validate(xmlNodePtr *xml, stonith_t *st, const char *agent, st 34 include/pcmki/pcmki_fence.h int pcmk__fence_action(stonith_t *st, const char *target, const char *action, st 58 include/pcmki/pcmki_fence.h int pcmk__fence_history(pcmk__output_t *out, stonith_t *st, char *target, st 78 include/pcmki/pcmki_fence.h int pcmk__fence_installed(pcmk__output_t *out, stonith_t *st, unsigned int timeout); st 115 include/pcmki/pcmki_fence.h int pcmk__fence_list_targets(pcmk__output_t *out, stonith_t *st, st 135 include/pcmki/pcmki_fence.h int pcmk__fence_metadata(pcmk__output_t *out, stonith_t *st, char *agent, st 156 include/pcmki/pcmki_fence.h int pcmk__fence_registered(pcmk__output_t *out, stonith_t *st, char *target, st 177 include/pcmki/pcmki_fence.h int pcmk__fence_register_level(stonith_t *st, char *target, int fence_level, st 197 include/pcmki/pcmki_fence.h int pcmk__fence_unregister_level(stonith_t *st, char *target, int fence_level); st 218 include/pcmki/pcmki_fence.h int pcmk__fence_validate(pcmk__output_t *out, stonith_t *st, const char *agent, st 223 lib/common/logging.c struct stat st; st 231 lib/common/logging.c rc = fstat(logfd, &st); st 239 lib/common/logging.c if (st.st_gid != pcmk_gid) { st 242 lib/common/logging.c } else if ((st.st_mode & S_IRWXG) != (S_IRGRP | S_IWGRP)) { st 414 lib/common/options.c struct stat st; st 420 lib/common/options.c if (stat(value, &st) != 0) { st 425 lib/common/options.c if (S_ISREG(st.st_mode) == 0) { st 430 lib/common/options.c if ((st.st_mode & (S_IXUSR | S_IXGRP)) == 0) { st 72 lib/fencing/st_client.c void (*op_callback) (stonith_t * st, stonith_callback_data_t * data); st 80 lib/fencing/st_client.c void (*notify) (stonith_t * st, stonith_event_t * e); st 86 lib/fencing/st_client.c void (*callback) (stonith_t * st, stonith_callback_data_t * data); st 110 lib/fencing/st_client.c bool stonith_dispatch(stonith_t * st); st 309 lib/fencing/st_client.c stonith_api_register_device(stonith_t * st, int call_options, st 319 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_DEVICE_ADD, data, NULL, call_options, 0); st 326 lib/fencing/st_client.c stonith_api_remove_device(stonith_t * st, int call_options, const char *name) st 334 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_DEVICE_DEL, data, NULL, call_options, 0); st 341 lib/fencing/st_client.c stonith_api_remove_level_full(stonith_t *st, int options, st 365 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_LEVEL_DEL, data, NULL, options, 0); st 372 lib/fencing/st_client.c stonith_api_remove_level(stonith_t * st, int options, const char *node, int level) st 374 lib/fencing/st_client.c return stonith_api_remove_level_full(st, options, node, st 435 lib/fencing/st_client.c stonith_api_register_level_full(stonith_t * st, int options, const char *node, st 445 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_LEVEL_ADD, data, NULL, options, 0); st 452 lib/fencing/st_client.c stonith_api_register_level(stonith_t * st, int options, const char *node, int level, st 455 lib/fencing/st_client.c return stonith_api_register_level_full(st, options, node, NULL, NULL, NULL, st 1295 lib/fencing/st_client.c invoke_callback(stonith_t * st, int call_id, int rc, void *userdata, st 1296 lib/fencing/st_client.c void (*callback) (stonith_t * st, stonith_callback_data_t * data)) st 1304 lib/fencing/st_client.c callback(st, &data); st 1403 lib/fencing/st_client.c update_callback_timeout(int call_id, int timeout, stonith_t * st) st 1406 lib/fencing/st_client.c stonith_private_t *private = st->st_private; st 1413 lib/fencing/st_client.c set_callback_timeout(callback, st, call_id, timeout); st 1422 lib/fencing/st_client.c stonith_t *st = userdata; st 1425 lib/fencing/st_client.c CRM_ASSERT(st != NULL); st 1426 lib/fencing/st_client.c private = st->st_private; st 1428 lib/fencing/st_client.c blob.stonith = st; st 1440 lib/fencing/st_client.c stonith_perform_callback(st, blob.xml, 0, 0); st 1451 lib/fencing/st_client.c update_callback_timeout(call_id, timeout, st); st 1660 lib/fencing/st_client.c void (*callback) (stonith_t * st, stonith_callback_data_t * data)) st 1960 lib/fencing/st_client.c stonith_dispatch(stonith_t * st) st 1965 lib/fencing/st_client.c CRM_ASSERT(st != NULL); st 1966 lib/fencing/st_client.c private = st->st_private; st 1973 lib/fencing/st_client.c stonith_dispatch_internal(msg, strlen(msg), st); st 2027 lib/fencing/st_client.c stonith_api_validate(stonith_t *st, int call_options, const char *rsc_id, st 2081 lib/fencing/st_client.c rc = stonith__rhcs_validate(st, call_options, target, agent, st 2088 lib/fencing/st_client.c rc = stonith__lha_validate(st, call_options, target, agent, st 2186 lib/fencing/st_client.c stonith_api_connect_retry(stonith_t *st, const char *name, int max_attempts) st 2191 lib/fencing/st_client.c rc = st->cmds->connect(st, name, NULL); st 2258 lib/fencing/st_client.c stonith_t *st = stonith_api_new(); st 2262 lib/fencing/st_client.c if (st == NULL) { st 2268 lib/fencing/st_client.c rc = st->cmds->connect(st, "stonith-api", NULL); st 2281 lib/fencing/st_client.c rc = st->cmds->fence(st, opts, name, action, timeout, 0); st 2292 lib/fencing/st_client.c stonith_api_delete(st); st 2301 lib/fencing/st_client.c stonith_t *st = stonith_api_new(); st 2304 lib/fencing/st_client.c if (st == NULL) { st 2310 lib/fencing/st_client.c rc = st->cmds->connect(st, "stonith-api", NULL); st 2324 lib/fencing/st_client.c rc = st->cmds->history(st, opts, name, &history, 120); st 2352 lib/fencing/st_client.c stonith_api_delete(st); st 2363 lib/fencing/st_client.c stonith_t *st = NULL; st 2372 lib/fencing/st_client.c st = stonith_api_new(); st 2373 lib/fencing/st_client.c if (st == NULL) { st 2377 lib/fencing/st_client.c st->cmds->list_agents(st, st_opt_sync_call, NULL, &devices, timeout == 0 ? 120 : timeout); st 2387 lib/fencing/st_client.c stonith_api_delete(st); st 274 lib/fencing/st_lha.c stonith__lha_validate(stonith_t *st, int call_options, const char *target, st 244 lib/fencing/st_rhcs.c stonith__rhcs_validate(stonith_t *st, int call_options, const char *target, st 28 lib/pacemaker/pcmk_fence.c stonith_t *st; st 39 lib/pacemaker/pcmk_fence.c handle_level(stonith_t *st, char *target, int fence_level, st 65 lib/pacemaker/pcmk_fence.c rc = st->cmds->register_level_full(st, st_opts, node, pattern, st 69 lib/pacemaker/pcmk_fence.c rc = st->cmds->remove_level_full(st, st_opts, node, pattern, st 77 lib/pacemaker/pcmk_fence.c notify_callback(stonith_t * st, stonith_event_t * e) st 102 lib/pacemaker/pcmk_fence.c stonith_t *st = async_fence_data.st; st 104 lib/pacemaker/pcmk_fence.c int rc = stonith_api_connect_retry(st, async_fence_data.name, 10); st 112 lib/pacemaker/pcmk_fence.c st->cmds->register_notification(st, T_STONITH_NOTIFY_FENCE, notify_callback); st 114 lib/pacemaker/pcmk_fence.c call_id = st->cmds->fence_with_delay(st, st 127 lib/pacemaker/pcmk_fence.c st->cmds->register_callback(st, st 136 lib/pacemaker/pcmk_fence.c pcmk__fence_action(stonith_t *st, const char *target, const char *action, st 142 lib/pacemaker/pcmk_fence.c async_fence_data.st = st; st 164 lib/pacemaker/pcmk_fence.c pcmk_fence_action(stonith_t *st, const char *target, const char *action, st 168 lib/pacemaker/pcmk_fence.c return pcmk__fence_action(st, target, action, name, timeout, tolerance, delay); st 173 lib/pacemaker/pcmk_fence.c pcmk__fence_history(pcmk__output_t *out, stonith_t *st, char *target, st 197 lib/pacemaker/pcmk_fence.c rc = st->cmds->history(st, opts, st 240 lib/pacemaker/pcmk_fence.c pcmk_fence_history(xmlNodePtr *xml, stonith_t *st, char *target, unsigned int timeout, st 252 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_history(out, st, target, timeout, verbose, broadcast, cleanup); st 259 lib/pacemaker/pcmk_fence.c pcmk__fence_installed(pcmk__output_t *out, stonith_t *st, unsigned int timeout) { st 263 lib/pacemaker/pcmk_fence.c rc = st->cmds->list_agents(st, st_opt_sync_call, NULL, &devices, timeout/1000); st 281 lib/pacemaker/pcmk_fence.c pcmk_fence_installed(xmlNodePtr *xml, stonith_t *st, unsigned int timeout) { st 290 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_installed(out, st, timeout); st 331 lib/pacemaker/pcmk_fence.c pcmk__fence_list_targets(pcmk__output_t *out, stonith_t *st, st 337 lib/pacemaker/pcmk_fence.c rc = st->cmds->list(st, st_opts, device_id, &lists, timeout/1000); st 357 lib/pacemaker/pcmk_fence.c pcmk_fence_list_targets(xmlNodePtr *xml, stonith_t *st, const char *device_id, st 367 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_list_targets(out, st, device_id, timeout); st 374 lib/pacemaker/pcmk_fence.c pcmk__fence_metadata(pcmk__output_t *out, stonith_t *st, char *agent, st 377 lib/pacemaker/pcmk_fence.c int rc = st->cmds->metadata(st, st_opt_sync_call, agent, NULL, &buffer, st 391 lib/pacemaker/pcmk_fence.c pcmk_fence_metadata(xmlNodePtr *xml, stonith_t *st, char *agent, st 401 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_metadata(out, st, agent, timeout); st 408 lib/pacemaker/pcmk_fence.c pcmk__fence_registered(pcmk__output_t *out, stonith_t *st, char *target, st 413 lib/pacemaker/pcmk_fence.c rc = st->cmds->query(st, st_opts, target, &devices, timeout/1000); st 435 lib/pacemaker/pcmk_fence.c pcmk_fence_registered(xmlNodePtr *xml, stonith_t *st, char *target, st 445 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_registered(out, st, target, timeout); st 452 lib/pacemaker/pcmk_fence.c pcmk__fence_register_level(stonith_t *st, char *target, int fence_level, st 454 lib/pacemaker/pcmk_fence.c return handle_level(st, target, fence_level, devices, true); st 459 lib/pacemaker/pcmk_fence.c pcmk_fence_register_level(stonith_t *st, char *target, int fence_level, st 461 lib/pacemaker/pcmk_fence.c return pcmk__fence_register_level(st, target, fence_level, devices); st 466 lib/pacemaker/pcmk_fence.c pcmk__fence_unregister_level(stonith_t *st, char *target, int fence_level) { st 467 lib/pacemaker/pcmk_fence.c return handle_level(st, target, fence_level, NULL, false); st 472 lib/pacemaker/pcmk_fence.c pcmk_fence_unregister_level(stonith_t *st, char *target, int fence_level) { st 473 lib/pacemaker/pcmk_fence.c return pcmk__fence_unregister_level(st, target, fence_level); st 478 lib/pacemaker/pcmk_fence.c pcmk__fence_validate(pcmk__output_t *out, stonith_t *st, const char *agent, st 485 lib/pacemaker/pcmk_fence.c rc = st->cmds->validate(st, st_opt_sync_call, id, NULL, agent, params, st 493 lib/pacemaker/pcmk_fence.c pcmk_fence_validate(xmlNodePtr *xml, stonith_t *st, const char *agent, st 504 lib/pacemaker/pcmk_fence.c rc = pcmk__fence_validate(out, st, agent, id, params, timeout); st 886 lib/services/services_linux.c struct stat st; st 890 lib/services/services_linux.c if(stat(op->opaque->exec, &st) != 0) { st 1173 lib/services/services_linux.c struct stat st; st 1180 lib/services/services_linux.c if (stat(buf, &st) == 0) { st 261 lib/services/services_lsb.c struct stat st; st 264 lib/services/services_lsb.c rc = (stat(path, &st) == 0); st 50 lib/services/services_nagios.c struct stat st; st 54 lib/services/services_nagios.c if (stat(metadata, &st) == 0) { st 68 lib/services/services_nagios.c struct stat st; st 75 lib/services/services_nagios.c if (stat(buf, &st) == 0) { st 74 tools/crm_mon.c static stonith_t *st = NULL; st 130 tools/crm_mon.c static void mon_st_callback_event(stonith_t * st, stonith_event_t * e); st 131 tools/crm_mon.c static void mon_st_callback_display(stonith_t * st, stonith_event_t * e); st 711 tools/crm_mon.c if (st) { st 715 tools/crm_mon.c st->cmds->remove_notification(st, T_STONITH_NOTIFY_DISCONNECT); st 716 tools/crm_mon.c st->cmds->remove_notification(st, T_STONITH_NOTIFY_FENCE); st 717 tools/crm_mon.c st->cmds->remove_notification(st, T_STONITH_NOTIFY_HISTORY); st 718 tools/crm_mon.c if (st->state != stonith_disconnected) { st 719 tools/crm_mon.c st->cmds->disconnect(st); st 785 tools/crm_mon.c if (pcmk_is_set(options.mon_ops, mon_op_fence_connect) && (st == NULL)) { st 786 tools/crm_mon.c st = stonith_api_new(); st 790 tools/crm_mon.c && (st != NULL) && (st->state == stonith_disconnected)) { st 792 tools/crm_mon.c rc = st->cmds->connect(st, crm_system_name, NULL); st 796 tools/crm_mon.c st->cmds->register_notification(st, T_STONITH_NOTIFY_DISCONNECT, st 798 tools/crm_mon.c st->cmds->register_notification(st, T_STONITH_NOTIFY_FENCE, mon_st_callback_event); st 800 tools/crm_mon.c st->cmds->register_notification(st, T_STONITH_NOTIFY_DISCONNECT, st 802 tools/crm_mon.c st->cmds->register_notification(st, T_STONITH_NOTIFY_HISTORY, mon_st_callback_display); st 895 tools/crm_mon.c if (st == NULL) { st 1953 tools/crm_mon.c if (st != NULL) { st 1954 tools/crm_mon.c history_rc = st->cmds->history(st, st_opt_sync_call, NULL, &stonith_history, 120); st 2055 tools/crm_mon.c mon_st_callback_event(stonith_t * st, stonith_event_t * e) st 2057 tools/crm_mon.c if (st->state == stonith_disconnected) { st 2104 tools/crm_mon.c mon_st_callback_display(stonith_t * st, stonith_event_t * e) st 2106 tools/crm_mon.c if (st->state == stonith_disconnected) { st 2124 tools/crm_mon.c if (st != NULL) { st 2125 tools/crm_mon.c if (st->state != stonith_disconnected) { st 2126 tools/crm_mon.c st->cmds->remove_notification(st, T_STONITH_NOTIFY_DISCONNECT); st 2127 tools/crm_mon.c st->cmds->remove_notification(st, T_STONITH_NOTIFY_FENCE); st 2128 tools/crm_mon.c st->cmds->remove_notification(st, T_STONITH_NOTIFY_HISTORY); st 2129 tools/crm_mon.c st->cmds->disconnect(st); st 2131 tools/crm_mon.c stonith_api_delete(st); st 2132 tools/crm_mon.c st = NULL; st 344 tools/stonith_admin.c stonith_t *st = NULL; st 503 tools/stonith_admin.c st = stonith_api_new(); st 504 tools/stonith_admin.c if (st == NULL) { st 507 tools/stonith_admin.c rc = st->cmds->connect(st, name, NULL); st 517 tools/stonith_admin.c rc = pcmk__fence_installed(out, st, options.timeout*1000); st 525 tools/stonith_admin.c rc = pcmk__fence_registered(out, st, target, options.timeout*1000); st 533 tools/stonith_admin.c rc = st->cmds->monitor(st, st_opts, device, options.timeout); st 535 tools/stonith_admin.c rc = st->cmds->list(st, st_opts, device, NULL, options.timeout); st 541 tools/stonith_admin.c rc = pcmk__fence_list_targets(out, st, device, options.timeout*1000); st 549 tools/stonith_admin.c rc = st->cmds->register_device(st, st_opts, device, NULL, options.agent, st 555 tools/stonith_admin.c rc = st->cmds->remove_device(st, st_opts, device); st 560 tools/stonith_admin.c rc = pcmk__fence_unregister_level(st, target, options.fence_level); st 564 tools/stonith_admin.c rc = pcmk__fence_register_level(st, target, options.fence_level, options.devices); st 568 tools/stonith_admin.c rc = pcmk__fence_metadata(out, st, options.agent, options.timeout*1000); st 576 tools/stonith_admin.c rc = st->cmds->confirm(st, st_opts, target); st 581 tools/stonith_admin.c rc = pcmk__fence_action(st, target, "reboot", name, options.timeout*1000, st 586 tools/stonith_admin.c rc = pcmk__fence_action(st, target, "off", name, options.timeout*1000, st 591 tools/stonith_admin.c rc = pcmk__fence_action(st, target, "on", name, options.timeout*1000, st 600 tools/stonith_admin.c rc = pcmk__fence_history(out, st, target, options.timeout*1000, args->verbosity, st 606 tools/stonith_admin.c rc = pcmk__fence_validate(out, st, options.agent, device, options.params, st 626 tools/stonith_admin.c if (st != NULL) { st 627 tools/stonith_admin.c st->cmds->disconnect(st); st 628 tools/stonith_admin.c stonith_api_delete(st);