MCPcopy Create free account
hub / github.com/ClusterLabs/pacemaker / task2text

Function task2text

lib/pengine/common.c:294–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294const char *
295task2text(enum action_tasks task)
296{
297 const char *result = "<unknown>";
298
299 switch (task) {
300 case no_action:
301 result = "no_action";
302 break;
303 case stop_rsc:
304 result = CRMD_ACTION_STOP;
305 break;
306 case stopped_rsc:
307 result = CRMD_ACTION_STOPPED;
308 break;
309 case start_rsc:
310 result = CRMD_ACTION_START;
311 break;
312 case started_rsc:
313 result = CRMD_ACTION_STARTED;
314 break;
315 case shutdown_crm:
316 result = CRM_OP_SHUTDOWN;
317 break;
318 case stonith_node:
319 result = CRM_OP_FENCE;
320 break;
321 case monitor_rsc:
322 result = CRMD_ACTION_STATUS;
323 break;
324 case action_notify:
325 result = CRMD_ACTION_NOTIFY;
326 break;
327 case action_notified:
328 result = CRMD_ACTION_NOTIFIED;
329 break;
330 case action_promote:
331 result = CRMD_ACTION_PROMOTE;
332 break;
333 case action_promoted:
334 result = CRMD_ACTION_PROMOTED;
335 break;
336 case action_demote:
337 result = CRMD_ACTION_DEMOTE;
338 break;
339 case action_demoted:
340 result = CRMD_ACTION_DEMOTED;
341 break;
342 }
343
344 return result;
345}
346
347const char *
348role2text(enum rsc_role_e role)

Callers 4

clone_action_flagsFunction · 0.85
convert_non_atomic_uuidFunction · 0.85
group_action_flagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected