Acked-by: Latchesar Ionkov <[EMAIL PROTECTED]>

On Dec 4, 2008, at 6:42 PM, Abhishek Kulkarni wrote:

this patch adds new node list functions in libxcpu, namely:

Xpnodeset *xp_nodeset_list_by_state(char *server, char *state);
Xpnodeset *xp_nodeset_list_by_arch(char *server, char *arch);
Xpnodeset *xp_nodeset_list_by_min_jobs(char *server, int minjobs);
Xpnodeset *xp_nodeset_list_by_max_jobs(char *server, int maxjobs);

a node list can be obtained from statfs by passing one of the conditions
or a combination of them to:
xp_nodeset_listnet_filter(char *server, char *state, char *arch, int
minjobs,int maxjobs)

only those nodes matching this criteria would be returned.
this was needed so that we loop over the nodes just once, instead of
twice to filter the nodes.

Signed-off-by: Abhishek Kulkarni <[EMAIL PROTECTED]>

<all.patch>

Reply via email to