[torquedev] patch: pbsnodes xml output does not include node name

David B Jackson jacksond at clusterresources.com
Thu Feb 1 00:27:01 MST 2007


Toni,

  Thanks for the patch!  It looks clean and has been rolled into the
TORQUE 2.2 development release.

Dave

>
> Hi-
>
> The pbsnodes xml output does not include the node names, so there is
> no way to tell which node is which.  Below is a patch to include
> the node name as an element of the form <name>...</name> at the same
> level as the other node attributes.
>
> Thanks,
> Toni
>
>
> --- torque-2.2.0-snap.200611291634/src/cmds/pbsnodes.c_orig	2006-11-28
> 15:41:49.000000000 -0500
> +++ torque-2.2.0-snap.200611291634/src/cmds/pbsnodes.c	2007-01-31
> 07:04:05.000000000 -0500
> @@ -664,6 +664,10 @@
>
>            MXMLAddE(DE,NE);
>
> +          AE = NULL;
> +          MXMLCreateE(&AE,"name");
> +          MXMLSetVal(AE,pbstat->name);
> +          MXMLAddE(NE,AE);
>            for (pat = pbstat->attribs;pat;pat = pat->next)
>              {
>              AE = NULL;
>
> -------------------------------------------------------------------
> Toni Harbaugh-Blackford                   harbaugh at abcc.ncifcrf.gov
> System Administrator
> Advanced Biomedical Computing Center (ABCC)
> National Cancer Institute
> Contractor - SAIC/Frederick
> _______________________________________________
> torquedev mailing list
> torquedev at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torquedev
>



More information about the torquedev mailing list