svc_action 51 lib/fencing/st_client.c svc_action_t *svc_action; svc_action 645 lib/fencing/st_client.c if (action->svc_action) { svc_action 646 lib/fencing/st_client.c services_action_free(action->svc_action); svc_action 753 lib/fencing/st_client.c svc_action_to_errno(svc_action_t *svc_action) { svc_action 756 lib/fencing/st_client.c if (svc_action->status == PCMK_EXEC_TIMEOUT) { svc_action 759 lib/fencing/st_client.c } else if (svc_action->rc != PCMK_OCF_OK) { svc_action 763 lib/fencing/st_client.c if (svc_action->stderr_data == NULL) { svc_action 766 lib/fencing/st_client.c } else if (strstr(svc_action->stderr_data, "imed out")) { svc_action 770 lib/fencing/st_client.c } else if (strstr(svc_action->stderr_data, "Unrecognised action")) { svc_action 781 lib/fencing/st_client.c stonith_action_async_done(svc_action_t *svc_action) svc_action 783 lib/fencing/st_client.c stonith_action_t *action = (stonith_action_t *) svc_action->cb_data; svc_action 785 lib/fencing/st_client.c action->rc = svc_action_to_errno(svc_action); svc_action 786 lib/fencing/st_client.c action->output = svc_action->stdout_data; svc_action 787 lib/fencing/st_client.c svc_action->stdout_data = NULL; svc_action 788 lib/fencing/st_client.c action->error = svc_action->stderr_data; svc_action 789 lib/fencing/st_client.c svc_action->stderr_data = NULL; svc_action 791 lib/fencing/st_client.c svc_action->params = NULL; svc_action 794 lib/fencing/st_client.c action->pid, action->action, svc_action->rc); svc_action 809 lib/fencing/st_client.c action->svc_action = NULL; // don't remove our caller svc_action 814 lib/fencing/st_client.c stonith_action_async_forked(svc_action_t *svc_action) svc_action 816 lib/fencing/st_client.c stonith_action_t *action = (stonith_action_t *) svc_action->cb_data; svc_action 818 lib/fencing/st_client.c action->pid = svc_action->pid; svc_action 819 lib/fencing/st_client.c action->svc_action = svc_action; svc_action 822 lib/fencing/st_client.c (action->fork_cb) (svc_action->pid, action->userdata); svc_action 834 lib/fencing/st_client.c svc_action_t *svc_action = NULL; svc_action 856 lib/fencing/st_client.c svc_action = services_action_create_generic(buffer, NULL); svc_action 859 lib/fencing/st_client.c if (svc_action->rc != PCMK_OCF_UNKNOWN) { svc_action 860 lib/fencing/st_client.c services_action_free(svc_action); svc_action 864 lib/fencing/st_client.c svc_action->timeout = 1000 * action->remaining_timeout; svc_action 865 lib/fencing/st_client.c svc_action->standard = strdup(PCMK_RESOURCE_CLASS_STONITH); svc_action 866 lib/fencing/st_client.c svc_action->id = crm_strdup_printf("%s_%s_%d", basename(action->agent), svc_action 868 lib/fencing/st_client.c svc_action->agent = strdup(action->agent); svc_action 869 lib/fencing/st_client.c svc_action->sequence = stonith_sequence++; svc_action 870 lib/fencing/st_client.c svc_action->params = action->args; svc_action 871 lib/fencing/st_client.c svc_action->cb_data = (void *) action; svc_action 872 lib/fencing/st_client.c svc_action->flags = pcmk__set_flags_as(__func__, __LINE__, svc_action 874 lib/fencing/st_client.c svc_action->id, svc_action->flags, svc_action 889 lib/fencing/st_client.c if (services_action_async_fork_notify(svc_action, svc_action 895 lib/fencing/st_client.c } else if (services_action_sync(svc_action)) { // sync success svc_action 897 lib/fencing/st_client.c action->rc = svc_action_to_errno(svc_action); svc_action 898 lib/fencing/st_client.c action->output = svc_action->stdout_data; svc_action 899 lib/fencing/st_client.c svc_action->stdout_data = NULL; svc_action 900 lib/fencing/st_client.c action->error = svc_action->stderr_data; svc_action 901 lib/fencing/st_client.c svc_action->stderr_data = NULL; svc_action 908 lib/fencing/st_client.c svc_action->params = NULL; svc_action 909 lib/fencing/st_client.c services_action_free(svc_action);