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

Function pe_fence_op

pengine/allocate.c:1228–1242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1226}
1227
1228action_t *
1229pe_fence_op(node_t *node, const char *op, pe_working_set_t * data_set)
1230{
1231 action_t *stonith_op = custom_action(
1232 NULL, g_strdup_printf("%s-%s", CRM_OP_FENCE, node->details->uname),
1233 CRM_OP_FENCE, node, FALSE, TRUE, data_set);
1234
1235 add_hash_param(stonith_op->meta, XML_LRM_ATTR_TARGET, node->details->uname);
1236
1237 add_hash_param(stonith_op->meta, XML_LRM_ATTR_TARGET_UUID, node->details->id);
1238
1239 add_hash_param(stonith_op->meta, "stonith_action", op?op:data_set->stonith_action);
1240
1241 return stonith_op;
1242}
1243
1244
1245/*

Callers 2

stage6Function · 0.85
native_create_probeFunction · 0.85

Calls 2

custom_actionFunction · 0.85
add_hash_paramFunction · 0.85

Tested by

no test coverage detected