stage6(GSListPtr stonith_nodes, GSListPtr shutdown_nodes)
stage6(GSListPtr *actions, GSListPtr *action_constraints, GSListPtr stonith_nodes, GSListPtr shutdown_nodes)
stage6(GSListPtr stonith_nodes, GSListPtr shutdown_nodes){	int lpc = 0;	int llpc = 0;	slist_iter(		node, node_t, shutdown_nodes, lpc,		action_t *down_node =			action_new(action_id++, NULL, shutdown_crm);		down_node->node = node;		down_node->runnable = TRUE;		action_list = g_slist_append(action_list, down_node);				slist_iter(			rsc, resource_t, node->details->running_rsc, llpc,						order_constraint_t *order = (order_constraint_t*)				cl_malloc(sizeof(order_constraint_t));			/* stop resources before shutdown */			order->id = order_id++;			order->lh_action = rsc->stop;			order->rh_action = down_node;			order->strength = must;			action_cons_list = g_slist_append(action_cons_list, order);			);		);	slist_iter(		node, node_t, stonith_nodes, lpc,		action_t *stonith_node =			action_new(action_id++, NULL, stonith_op);		stonith_node->node = node;		stonith_node->runnable = TRUE;		action_list = g_slist_append(action_list, stonith_node);		slist_iter(			rsc, resource_t, node->details->running_rsc, llpc,						order_constraint_t *order = (order_constraint_t*)				cl_malloc(sizeof(order_constraint_t));			/* try stopping the resource before stonithing the node			 *			 * if the stop succeeds, the transitioner can then			 * decided if  stonith is needed			 */			order->id = order_id++;			order->lh_action = rsc->stop;			order->rh_action = stonith_node;			order->strength = must;			action_cons_list = g_slist_append(action_cons_list, order);			/* stonith before start */			order = (order_constraint_t*)				cl_malloc(sizeof(order_constraint_t));			// try stopping the node first			order->id = order_id++;			order->lh_action = stonith_node;			order->rh_action = rsc->start;			order->strength = must;			action_cons_list = g_slist_append(action_cons_list, order);			);		);		return TRUE;}