A bug in phase1 ?

Huang wen hui hwh at gddsn.org.cn
Wed Oct 8 05:40:09 PDT 2003


hi,
I use http://sporner.dnsalias.org/freebsdcluster/phase1-214-src.tar.gz
under 5.1-CURRENT.
I found that I had to patch the following patch, or cl_admin would auto
add "2", "3" ...as node name to rsrc.
of cause the node "2","3" is not existed.

--hwh



diff -ur /tmp/phase1/clusterd/cl_cluster.c phase1/clusterd/cl_cluster.c
--- /tmp/phase1/clusterd/cl_cluster.c Sun Dec 1 22:39:57 2002
+++ phase1/clusterd/cl_cluster.c Wed Oct 8 15:43:39 2003
@@ -941,11 +941,11 @@
cr->weight = atoi(argv[4]);
cr->restartable = atoi(argv[5]);

- for (i=0; i < (argc - 7); i++) {
- strcpy(cr->nodes[i], argv[i+7]);
+ for (i=0; i < (argc - 8); i++) {
+ strcpy(cr->nodes[i], argv[i+8]);
} /* for */

- cr->n_nodes = (argc - 7);
+ cr->n_nodes = (argc - 8);

return (0);




More information about the freebsd-cluster mailing list