Cluster Project branch, master, updated. gfs-kernel_0_1_22-201-g96078c8
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Cluster Project".
The branch, master has been updated
via 96078c8382cb000b85424d5826f6ac83d49ce2ee (commit)
from 74315c485a9c134caa9d4a2cb77715c32c7493c5 (commit)Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 96078c8382cb000b85424d5826f6ac83d49ce2ee
Author: David Teigland <[email protected]> Date: Wed Apr 23 15:34:02 2008 -0500
fenced: more new devel
New stuff still under development, lots of various things fixed, reworked, changed.
-----------------------------------------------------------------------
Summary of changes:
fence/fenced/config.c | 2 +- fence/fenced/cpg.c | 168 +++++++++++++++++------- fence/fenced/fd.h | 4 +- ccs/ccs_tool/update.h => fence/fenced/fenced.h | 12 +- fence/fenced/main.c | 34 ++--- fence/fenced/recover.c | 10 ++- group/dlm_controld/config.c | 2 +- group/dlm_controld/cpg.c | 2 +- 8 files changed, 157 insertions(+), 77 deletions(-) copy ccs/ccs_tool/update.h => fence/fenced/fenced.h (73%)
fence/fenced/config.c +1 -1
@@ -49,7 +49,7 @@ static void read_ccs_int(int cd, char *path, int *config_val) }#define OUR_NAME_PATH "/cluster/clusternodes/clusternode[@name=\"%s\"]/@name" -#define GROUPD_COMPAT_PATH "/cluster/fence_daemon/@groupd_compat" +#define GROUPD_COMPAT_PATH "/cluster/group/@groupd_compat"#define CLEAN_START_PATH "/cluster/fence_daemon/@clean_start"#define POST_JOIN_DELAY_PATH "/cluster/fence_daemon/@post_join_delay"#define POST_FAIL_DELAY_PATH "/cluster/fence_daemon/@post_fail_delay"
fence/fenced/cpg.c +121 -47
249 lines not on this page · raw message
fence/fenced/fd.h +3 -1
@@ -42,6 +42,7 @@#include "list.h" #include "linux_endian.h" #include "libfence.h" +#include "fenced.h" /* Max name length for a group, pointless since we only ever create the "default" group. Regardless, set arbitrary max to match dlm's
@@ -130,7 +131,8 @@ extern struct commandline comline;#define FD_MSG_START 1#define FD_MSG_VICTIM_DONE 2 -#define FD_MSG_EXTERNAL 3 +#define FD_MSG_COMPLETE 3 +#define FD_MSG_EXTERNAL 4#define FD_MFLG_JOINING 1/* accompanies start, we are joining */ #define FD_MFLG_COMPLETE 2/* accompanies start, we have complete info */
fence/fenced/fenced.h renamed from ccs/ccs_tool/update.h +7 -5
@@ -1,7 +1,7 @@/****************************************************************************** ******************************************************************************* ** -** Copyright (C) 2005 Red Hat, Inc. All rights reserved. +** Copyright (C) 2008 Red Hat, Inc. All rights reserved. ** ** This copyrighted material is made available to anyone wishing to use, ** modify, copy, or redistribute it subject to the terms and conditions
@@ -10,9 +10,11 @@******************************************************************************* ******************************************************************************/ -#ifndef __UPDATE_DOT_H__ -#define __UPDATE_DOT_H__ +#ifndef __FENCED_DOT_H__ +#define __FENCED_DOT_H__ -int update (char *location); +#define FENCED_SOCK_PATH "fenced_socket" +#define FENCED_MSGLEN 256 + +#endif -#endif /* __UPDATE_DOT_H__ */
fence/fenced/main.c +14 -20
@@ -14,7 +14,6 @@#include "fd.h" #include "copyright.cf" -#define FENCED_SOCK_PATH "fenced_socket"#define LOCKFILE_NAME "/var/run/fenced.pid"#define CLIENT_NALLOC 32
@@ -282,8 +281,6 @@ static void make_args(char *buf, int *argc, char **argv, char sep) *argc = i; } -#define FENCED_MSGLEN 256 -static void process_connection (int ci) {char buf[FENCED_MSGLEN ];
@@ -524,21 +521,13 @@ static void print_usage(void)printf ("\n" ); } -#define OPTION_STRING "gcj:f:Dn:O:T:hVS" +#define OPTION_STRING "g:cj:f:Dn:O:T:hVS"static void read_arguments (int argc,char **argv) {int cont =1 ;int optchar; - comline.override_path_opt =0 ; - comline.override_path =NULL ; - comline.post_join_delay_opt =0 ; - comline.post_fail_delay_opt =0 ; - comline.clean_start_opt =0 ; - comline.override_time_opt =0 ; - comline.override_time =5 ;/* default */ -while (cont) { optchar =getopt (argc, argv,OPTION_STRING );
@@ -703,19 +692,24 @@ struct commandline comline;/* tell fenced that an external program has fenced a node, e.g. fence_node; fenced will try to suppress its own fencing of this node a second time */ - fenced_external(char *domain, int nodeid); + fenced_external(int nodeid);/* fenced gives info about a single node */ - fenced_node_info(char *domain, int nodeid, char *name, - struct fenced_node *info); + fenced_node_info(int nodeid, char *name, struct fenced_node *info);/* fenced gives info about the domain */ - fenced_domain_info(char *domain, struct fenced_domain *info); + fenced_domain_info(struct fenced_domain *info);/* fenced copies a node struct for each member */ - fenced_domain_members(char *domain, int num, struct fenced_node **info); + fenced_domain_members(int num, struct fenced_node **info); + + fenced_debug_dump(char **buf, int len); +fenced_join (void); +fenced_leave (void); + + for all of these, libfenced connects to fenced, writes a structure that + defines the type, then for some, reads back data, copies data into + buffers provided by caller, disconnects from fenced -fenced_debug_dump (); -fenced_join (); -fenced_leave (); #endif +
fence/fenced/recover.c +9 -1
@@ -162,6 +162,9 @@ void delay_fencing(struct fd *fd, int node_join)struct node *node;char *delay_type; +if (list_empty (&fd->victims)) +return ; +if (node_join) { delay = comline.post_join_delay; delay_type ="post_join_delay" ;
@@ -216,7 +219,12 @@ void delay_fencing(struct fd *fd, int node_join)void defer_fencing (struct fd *fd) { -char *master_name =nodeid_to_name (fd->master); +char *master_name; + +if (list_empty (&fd->victims)) +return ; + + master_name =nodeid_to_name (fd->master);log_debug ("defer fencing to %d %s" , fd->master, master_name);syslog (LOG_INFO ,"fencing deferred to %s" , master_name);
group/dlm_controld/config.c +1 -1
@@ -237,7 +237,7 @@ static void read_ccs_protocol(int cd, char *path, int *config_val)#define DEBUG_PATH "/cluster/dlm/@log_debug"#define TIMEWARN_PATH "/cluster/dlm/@timewarn"#define PROTOCOL_PATH "/cluster/dlm/@protocol" -#define GROUPD_COMPAT_PATH "/cluster/dlm/@groupd_compat" +#define GROUPD_COMPAT_PATH "/cluster/group/@groupd_compat"#define ENABLE_DEADLK_PATH "/cluster/dlm/@enable_deadlk"#define ENABLE_PLOCK_PATH "/cluster/dlm/@enable_plock"#define PLOCK_DEBUG_PATH "/cluster/dlm/@plock_debug"
group/dlm_controld/cpg.c +1 -1
@@ -667,7 +667,7 @@ static int match_change(struct lockspace *ls, struct change *cg, failed_count =le32_to_cpu (nums[3 ]); n_ints =4 + member_count; -if (len != (sizeof (struct dlm_header ) + (n_ints *sizeof (int )))) { +if (len < (sizeof (struct dlm_header ) + (n_ints *sizeof (int )))) {log_group (ls,"match_change fail %d:%u bad len %d nums %s" , hd->nodeid, seq, len,str_nums (nums, n_ints));return 0 ;
hooks/post-receive
--
Cluster Project