cluster/group daemon/gd_internal.h daemon/main ...
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: teigland at sourceware.org 2006-07-13 21:28:45
Modified files:
group/daemon : gd_internal.h main.c
group/dlm_controld: dlm_daemon.h main.c
group/gfs_controld: lock_dlm.h main.c
Log message:
- memset to 0 arrays of arg pointers
- tighten up the splitting of strings into arg arrays
- reduce the size of the arg pointer arrays since we now know the max number of args we're splitting out
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/daemon/gd_internal.h.diff?cvsroot=cluster&r1=1.37&r2=1.38
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/daemon/main.c.diff?cvsroot=cluster&r1=1.39&r2=1.40
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/dlm_controld/dlm_daemon.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/dlm_controld/main.c.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/lock_dlm.h.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/main.c.diff?cvsroot=cluster&r1=1.3&r2=1.4
group/daemon/gd_internal.h +1 -1
@@ -43,7 +43,7 @@#define MAX_NAMELEN (32)/* should match libgroup.h */ #define MAX_LEVELS (4)#define MAX_NODES (256) -#define MAXARGS (32) +#define MAXARGS (16)#define MAXCON (16)#define NALLOC (16)#define DUMP_SIZE (1024 * 1024)
group/daemon/main.c +1 -0
@@ -538,6 +538,7 @@int argc =0 , rv, act;memset (buf,0 ,sizeof (buf)); +memset (argv,0 ,sizeof (char *) *MAXARGS ); rv =read (client[ci].fd, buf,GROUPD_MSGLEN );if (!rv) {
group/dlm_controld/dlm_daemon.h +1 -1
@@ -44,7 +44,7 @@#include "list.h" #include "libgroup.h" -#define MAXARGS 64 +#define MAXARGS 8#define MAXLINE 256#define MAXCON 4#define MAXNAME 255
group/dlm_controld/main.c +40 -4
74 lines not on this page · raw message
group/gfs_controld/lock_dlm.h +1 -1
@@ -37,7 +37,7 @@#include "linux_endian.h" #include "libgroup.h" -#define MAXARGS 64 +#define MAXARGS 16#define MAXLINE 256#define MAXNAME 255#define MAX_CLIENTS 8
group/gfs_controld/main.c +42 -6
96 lines not on this page · raw message