Date: Wed, 08 Oct 2003 20:39:56 +0800 From: Huang wen hui <hwh@gddsn.org.cn> To: freebsd-cluster@freebsd.org Subject: A bug in phase1 ? Message-ID: <3F84059C.9000204@gddsn.org.cn>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F84059C.9000204>