st 173 crmd/te_utils.c tengine_stonith_connection_destroy(stonith_t * st, stonith_event_t * e) st 206 crmd/te_utils.c tengine_stonith_notify(stonith_t * st, stonith_event_t * st_event) st 181 fencing/admin.c stonith_t *st; st 193 fencing/admin.c stonith_t *st = async_fence_data.st; st 200 fencing/admin.c rc = st->cmds->connect(st, async_fence_data.name, NULL); st 216 fencing/admin.c notify_callback(stonith_t * st, stonith_event_t * e) st 241 fencing/admin.c stonith_t *st = async_fence_data.st; st 249 fencing/admin.c st->cmds->register_notification(st, T_STONITH_NOTIFY_FENCE, notify_callback); st 251 fencing/admin.c call_id = st->cmds->fence(st, st 262 fencing/admin.c st->cmds->register_callback(st, st 271 fencing/admin.c mainloop_fencing(stonith_t * st, const char *target, const char *action, int timeout, int tolerance) st 275 fencing/admin.c async_fence_data.st = st; st 292 fencing/admin.c handle_level(stonith_t *st, char *target, int fence_level, st 312 fencing/admin.c return st->cmds->register_level_full(st, st_opts, node, pattern, st 316 fencing/admin.c return st->cmds->remove_level_full(st, st_opts, node, pattern, st 348 fencing/admin.c show_history(stonith_t *st, const char *target, int timeout, int quiet, st 354 fencing/admin.c rc = st->cmds->history(st, st_opts, st 425 fencing/admin.c stonith_t *st = NULL; st 559 fencing/admin.c st = stonith_api_new(); st 562 fencing/admin.c rc = st->cmds->connect(st, async_fence_data.name, NULL); st 570 fencing/admin.c rc = st->cmds->list_agents(st, st_opt_sync_call, NULL, &devices, timeout); st 584 fencing/admin.c rc = st->cmds->query(st, st_opts, target, &devices, timeout); st 597 fencing/admin.c rc = st->cmds->monitor(st, st_opts, device, timeout); st 599 fencing/admin.c rc = st->cmds->list(st, st_opts, device, NULL, timeout); st 603 fencing/admin.c rc = st->cmds->list(st, st_opts, device, &lists, timeout); st 634 fencing/admin.c rc = st->cmds->register_device(st, st_opts, device, "stonith-ng", agent, params); st 637 fencing/admin.c rc = st->cmds->remove_device(st, st_opts, device); st 641 fencing/admin.c rc = handle_level(st, target, fence_level, devices, action == 'r'); st 650 fencing/admin.c rc = st->cmds->metadata(st, st_opt_sync_call, agent, NULL, &buffer, timeout); st 658 fencing/admin.c rc = st->cmds->confirm(st, st_opts, target); st 661 fencing/admin.c rc = mainloop_fencing(st, target, "reboot", timeout, tolerance); st 664 fencing/admin.c rc = mainloop_fencing(st, target, "off", timeout, tolerance); st 667 fencing/admin.c rc = mainloop_fencing(st, target, "on", timeout, tolerance); st 687 fencing/admin.c rc = show_history(st, target, timeout, quiet, verbose); st 696 fencing/admin.c st->cmds->disconnect(st); st 697 fencing/admin.c stonith_api_delete(st); st 703 fencing/commands.c stonith_t *st = stonith_api_new(); st 704 fencing/commands.c int rc = st->cmds->metadata(st, st_opt_sync_call, agent, NULL, &buffer, 10); st 706 fencing/commands.c stonith_api_delete(st); st 88 fencing/test.c stonith_t *st = NULL; st 104 fencing/test.c if (!stonith_dispatch(st)) { st 114 fencing/test.c st_callback(stonith_t * st, stonith_event_t * e) st 116 fencing/test.c if (st->state == stonith_disconnected) { st 141 fencing/test.c rc = st->cmds->connect(st, crm_system_name, &pollfd.fd); st 144 fencing/test.c st->cmds->register_notification(st, T_STONITH_NOTIFY_DISCONNECT, st_callback); st 145 fencing/test.c st->cmds->register_notification(st, T_STONITH_NOTIFY_FENCE, st_callback); st 146 fencing/test.c st->cmds->register_notification(st, STONITH_OP_DEVICE_ADD, st_callback); st 147 fencing/test.c st->cmds->register_notification(st, STONITH_OP_DEVICE_DEL, st_callback); st 148 fencing/test.c st->cmds->register_callback(st, 0, 120, st_opt_timeout_updates, NULL, "st_global_callback", st 187 fencing/test.c single_test(st-> st 188 fencing/test.c cmds->register_device(st, st_opts, "test-id1", "stonith-ng", "fence_dummy", params), st 191 fencing/test.c single_test(st->cmds->fence(st, st_opts, "false_1_node2", "off", 3, 0), st 194 fencing/test.c single_test(st->cmds->fence(st, st_opts, "false_1_node2", "reboot", 3, 0), st 197 fencing/test.c single_test(st->cmds->remove_device(st, st_opts, "test-id1"), st 211 fencing/test.c single_test(st-> st 212 fencing/test.c cmds->register_device(st, st_opts, "test-id1", "stonith-ng", "fence_dummy", params), st 219 fencing/test.c single_test(st-> st 220 fencing/test.c cmds->register_device(st, st_opts, "test-id2", "stonith-ng", "fence_dummy", params), st 223 fencing/test.c single_test(st->cmds->fence(st, st_opts, "false_1_node2", "off", 3, 0), st 227 fencing/test.c single_test(st->cmds->fence(st, st_opts, "false_1_node2", "on", 3, 0), st 230 fencing/test.c single_test(st->cmds->remove_device(st, st_opts, "test-id1"), st 233 fencing/test.c single_test(st->cmds->remove_device(st, st_opts, "test-id2"), st 248 fencing/test.c single_test(st-> st 249 fencing/test.c cmds->register_device(st, st_opts, "test-id", "stonith-ng", "fence_dummy", params), st 254 fencing/test.c single_test(st->cmds->list(st, st_opts, "test-id", NULL, 1), "list", 1, 0); st 256 fencing/test.c single_test(st->cmds->monitor(st, st_opts, "test-id", 1), "Monitor", 1, 0); st 258 fencing/test.c single_test(st->cmds->status(st, st_opts, "test-id", "false_1_node2", 1), st 261 fencing/test.c single_test(st->cmds->status(st, st_opts, "test-id", "false_1_node1", 1), st 264 fencing/test.c single_test(st->cmds->fence(st, st_opts, "unknown-host", "off", 1, 0), st 267 fencing/test.c single_test(st->cmds->fence(st, st_opts, "false_1_node1", "off", 1, 0), st 271 fencing/test.c single_test(st->cmds->fence(st, st_opts, "false_1_node1", "on", 1, 0), st 275 fencing/test.c single_test(st->cmds->register_level(st, st_opts, "node1", 999, params), st 278 fencing/test.c single_test(st->cmds->remove_device(st, st_opts, "test-id"), "Remove test-id", 1, 0); st 288 fencing/test.c rc = st->cmds->connect(st, crm_system_name, &pollfd.fd); st 291 fencing/test.c st->cmds->register_notification(st, T_STONITH_NOTIFY_DISCONNECT, st_callback); st 292 fencing/test.c st->cmds->register_notification(st, T_STONITH_NOTIFY_FENCE, st_callback); st 293 fencing/test.c st->cmds->register_notification(st, STONITH_OP_DEVICE_ADD, st_callback); st 294 fencing/test.c st->cmds->register_notification(st, STONITH_OP_DEVICE_DEL, st_callback); st 295 fencing/test.c st->cmds->register_callback(st, 0, 120, st_opt_timeout_updates, NULL, "st_global_callback", st 312 fencing/test.c rc = st->cmds->connect(st, crm_system_name, &pollfd.fd); st 317 fencing/test.c rc = st->cmds->register_device(st, st_opts, "test-id", "stonith-ng", "fence_xvm", params); st 320 fencing/test.c rc = st->cmds->list(st, st_opts, "test-id", &tmp, 10); st 323 fencing/test.c rc = st->cmds->monitor(st, st_opts, "test-id", 10); st 326 fencing/test.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node2", 10); st 329 fencing/test.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); st 332 fencing/test.c rc = st->cmds->fence(st, st_opts, "unknown-host", "off", 60, 0); st 335 fencing/test.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); st 338 fencing/test.c rc = st->cmds->fence(st, st_opts, "false_1_node1", "off", 60, 0); st 341 fencing/test.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); st 344 fencing/test.c rc = st->cmds->fence(st, st_opts, "false_1_node1", "on", 10, 0); st 347 fencing/test.c rc = st->cmds->status(st, st_opts, "test-id", "false_1_node1", 10); st 350 fencing/test.c rc = st->cmds->fence(st, st_opts, "some-host", "off", 10, 0); st 353 fencing/test.c rc = st->cmds->status(st, st_opts, "test-id", "some-host", 10); st 356 fencing/test.c rc = st->cmds->fence(st, st_opts, "false_1_node1", "on", 10, 0); st 359 fencing/test.c rc = st->cmds->remove_device(st, st_opts, "test-id"); st 378 fencing/test.c return st->cmds->register_callback(st, st 398 fencing/test.c rc = st->cmds->fence(st, 0, "true_1_node1", "off", MAINLOOP_DEFAULT_TIMEOUT, 0); st 431 fencing/test.c rc = st->cmds->fence(st, 0, "custom_timeout_node1", "off", MAINLOOP_DEFAULT_TIMEOUT, 0); st 454 fencing/test.c rc = st->cmds->fence(st, 0, "false_1_node2", "off", MAINLOOP_DEFAULT_TIMEOUT, 0); st 477 fencing/test.c rc = st->cmds->monitor(st, 0, "false_1", MAINLOOP_DEFAULT_TIMEOUT); st 495 fencing/test.c st->cmds->register_device(st, st_opts, "false_1", "stonith-ng", "fence_dummy", params); st 501 fencing/test.c st->cmds->register_device(st, st_opts, "true_1", "stonith-ng", "fence_dummy", params); st 510 fencing/test.c st->cmds->register_device(st, st_opts, "false_custom_timeout", "stonith-ng", "fence_dummy", st 525 fencing/test.c rc = st->cmds->connect(st, crm_system_name, NULL); st 574 fencing/test.c if (st) { st 575 fencing/test.c rc = st->cmds->disconnect(st); st 579 fencing/test.c stonith_api_delete(st); st 652 fencing/test.c st = stonith_api_new(); st 126 include/crm/stonith-ng.h int (*free) (stonith_t *st); st 134 include/crm/stonith-ng.h int (*connect) (stonith_t *st, const char *name, int *stonith_fd); st 142 include/crm/stonith-ng.h int (*disconnect)(stonith_t *st); st 153 include/crm/stonith-ng.h stonith_t *st, int options, const char *name); st 164 include/crm/stonith-ng.h stonith_t *st, int options, const char *id, st 176 include/crm/stonith-ng.h stonith_t *st, int options, const char *node, int level); st 188 include/crm/stonith-ng.h stonith_t *st, int options, const char *node, int level, stonith_key_value_t *device_list); st 198 include/crm/stonith-ng.h int (*metadata)(stonith_t *st, int options, st 220 include/crm/stonith-ng.h int (*list)(stonith_t *st, int options, const char *id, char **list_output, int timeout); st 228 include/crm/stonith-ng.h int (*monitor)(stonith_t *st, int options, const char *id, int timeout); st 236 include/crm/stonith-ng.h int (*status)(stonith_t *st, int options, const char *id, const char *port, int timeout); st 247 include/crm/stonith-ng.h int (*query)(stonith_t *st, int options, const char *node, st 265 include/crm/stonith-ng.h int (*fence)(stonith_t *st, int options, const char *node, const char *action, st 274 include/crm/stonith-ng.h int (*confirm)(stonith_t *st, int options, const char *node); st 284 include/crm/stonith-ng.h int (*history)(stonith_t *st, int options, const char *node, stonith_history_t **output, int timeout); st 287 include/crm/stonith-ng.h stonith_t *st, const char *event, st 288 include/crm/stonith-ng.h void (*notify)(stonith_t *st, stonith_event_t *e)); st 289 include/crm/stonith-ng.h int (*remove_notification)(stonith_t *st, const char *event); st 305 include/crm/stonith-ng.h int (*register_callback)(stonith_t *st, st 311 include/crm/stonith-ng.h void (*callback)(stonith_t *st, stonith_callback_data_t *data)); st 316 include/crm/stonith-ng.h int (*remove_callback)(stonith_t *st, int call_id, bool all_callbacks); st 334 include/crm/stonith-ng.h int (*remove_level_full)(stonith_t *st, int options, st 355 include/crm/stonith-ng.h int (*register_level_full)(stonith_t *st, int options, st 376 include/crm/stonith-ng.h void stonith_api_delete(stonith_t * st); st 378 include/crm/stonith-ng.h void stonith_dump_pending_callbacks(stonith_t * st); st 382 include/crm/stonith-ng.h bool stonith_dispatch(stonith_t * st); st 279 lib/common/logging.c struct stat st; st 285 lib/common/logging.c rc = fstat(logfd, &st); st 293 lib/common/logging.c if (st.st_gid != pcmk_gid) { st 296 lib/common/logging.c } else if ((st.st_mode & S_IRWXG) != (S_IRGRP | S_IWGRP)) { st 190 lib/common/utils.c struct stat st; st 196 lib/common/utils.c if(stat(value, &st) != 0) { st 201 lib/common/utils.c if(S_ISREG(st.st_mode) == 0) { st 206 lib/common/utils.c if( (st.st_mode & (S_IXUSR | S_IXGRP )) == 0) { st 89 lib/fencing/st_client.c void (*op_callback) (stonith_t * st, stonith_callback_data_t * data); st 97 lib/fencing/st_client.c void (*notify) (stonith_t * st, stonith_event_t * e); st 102 lib/fencing/st_client.c void (*callback) (stonith_t * st, stonith_callback_data_t * data); st 148 lib/fencing/st_client.c bool stonith_dispatch(stonith_t * st); st 235 lib/fencing/st_client.c stonith_api_register_device(stonith_t * st, int call_options, st 244 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_DEVICE_ADD, data, NULL, call_options, 0); st 251 lib/fencing/st_client.c stonith_api_remove_device(stonith_t * st, int call_options, const char *name) st 259 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_DEVICE_DEL, data, NULL, call_options, 0); st 266 lib/fencing/st_client.c stonith_api_remove_level_full(stonith_t *st, int options, st 290 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_LEVEL_DEL, data, NULL, options, 0); st 297 lib/fencing/st_client.c stonith_api_remove_level(stonith_t * st, int options, const char *node, int level) st 299 lib/fencing/st_client.c return stonith_api_remove_level_full(st, options, node, st 372 lib/fencing/st_client.c stonith_api_register_level_full(stonith_t * st, int options, const char *node, st 382 lib/fencing/st_client.c rc = stonith_send_command(st, STONITH_OP_LEVEL_ADD, data, NULL, options, 0); st 389 lib/fencing/st_client.c stonith_api_register_level(stonith_t * st, int options, const char *node, int level, st 392 lib/fencing/st_client.c return stonith_api_register_level_full(st, options, node, NULL, NULL, NULL, st 1961 lib/fencing/st_client.c update_callback_timeout(int call_id, int timeout, stonith_t * st) st 1964 lib/fencing/st_client.c stonith_private_t *private = st->private; st 1971 lib/fencing/st_client.c set_callback_timeout(callback, st, call_id, timeout); st 1975 lib/fencing/st_client.c invoke_callback(stonith_t * st, int call_id, int rc, void *userdata, st 1976 lib/fencing/st_client.c void (*callback) (stonith_t * st, stonith_callback_data_t * data)) st 1984 lib/fencing/st_client.c callback(st, &data); st 1990 lib/fencing/st_client.c void (*callback) (stonith_t * st, stonith_callback_data_t * data)) st 2340 lib/fencing/st_client.c stonith_dispatch(stonith_t * st) st 2345 lib/fencing/st_client.c CRM_ASSERT(st != NULL); st 2346 lib/fencing/st_client.c private = st->private; st 2353 lib/fencing/st_client.c stonith_dispatch_internal(msg, strlen(msg), st); st 2371 lib/fencing/st_client.c stonith_t *st = userdata; st 2374 lib/fencing/st_client.c CRM_ASSERT(st != NULL); st 2375 lib/fencing/st_client.c private = st->private; st 2377 lib/fencing/st_client.c blob.stonith = st; st 2389 lib/fencing/st_client.c stonith_perform_callback(st, blob.xml, 0, 0); st 2400 lib/fencing/st_client.c update_callback_timeout(call_id, timeout, st); st 2558 lib/fencing/st_client.c stonith_t *st = NULL; st 2562 lib/fencing/st_client.c st = stonith_api_new(); st 2563 lib/fencing/st_client.c if (st) { st 2564 lib/fencing/st_client.c rc = st->cmds->connect(st, "stonith-api", NULL); st 2583 lib/fencing/st_client.c rc = st->cmds->fence(st, opts, name, action, timeout, 0); st 2591 lib/fencing/st_client.c if (st) { st 2592 lib/fencing/st_client.c st->cmds->disconnect(st); st 2593 lib/fencing/st_client.c stonith_api_delete(st); st 2607 lib/fencing/st_client.c stonith_t *st = NULL; st 2611 lib/fencing/st_client.c st = stonith_api_new(); st 2612 lib/fencing/st_client.c if (st) { st 2613 lib/fencing/st_client.c rc = st->cmds->connect(st, "stonith-api", NULL); st 2627 lib/fencing/st_client.c if (st && rc == pcmk_ok) { st 2632 lib/fencing/st_client.c rc = st->cmds->history(st, opts, name, &history, 120); st 2657 lib/fencing/st_client.c if (st) { st 2658 lib/fencing/st_client.c st->cmds->disconnect(st); st 2659 lib/fencing/st_client.c stonith_api_delete(st); st 78 lib/services/services.c struct stat st; st 83 lib/services/services.c if (rc > 0 && stat(path, &st) == 0) { st 615 lib/services/services_linux.c struct stat st; st 642 lib/services/services_linux.c if(stat(op->opaque->exec, &st) != 0) { st 916 lib/services/services_linux.c struct stat st; st 918 lib/services/services_linux.c if (stat(metadata, &st) == 0) { st 58 lrmd/main.c stonith_connection_destroy_cb(stonith_t * st, stonith_event_t * e) st 58 tools/crm_mon.c void mon_st_callback(stonith_t * st, stonith_event_t * e); st 122 tools/crm_mon.c stonith_t *st = NULL; st 292 tools/crm_mon.c if (watch_fencing && st == NULL) { st 293 tools/crm_mon.c st = stonith_api_new(); st 296 tools/crm_mon.c if (watch_fencing && st->state == stonith_disconnected) { st 298 tools/crm_mon.c rc = st->cmds->connect(st, crm_system_name, NULL); st 301 tools/crm_mon.c st->cmds->register_notification(st, T_STONITH_NOTIFY_FENCE, mon_st_callback); st 4191 tools/crm_mon.c mon_st_callback(stonith_t * st, stonith_event_t * e)