 -			memset(node_updown, 0,
 -			       sizeof(int) * max(num_nodes, max_updown_nodes));
 -		}
++	status = cman_get_nodes(c_handle, count_nodes, &retnodes, nodes);
++	if (status < 0) {
++		log_error("Unable to get node details");
++		exit(6);
++	}
++
 +	if (node_updown == NULL) {
 +		node_updown =
 +			(int *) malloc(sizeof(int) *

+	if (this_node.cn_nodeid == 0) {
+		cman_get_node(c_handle, 0, &this_node);
 	}
+	memcpy(csid, &this_node.cn_nodeid, MAX_CSID_LEN);
 }
 
-/* Call a callback routine for each node that known (down mean not running a clvmd) */

 		}
+	}
 
-		if (node_updown == NULL) {
-			node_updown =
-			    (int *) malloc(sizeof(int) *
