Cluster Project branch, master, updated. cluster-2.99.00-19-g4f3e5ee
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 4f3e5eeb333dc74fb81470131d8d0e8b3d383ed4 (commit)
from f47515ef985da41de67f7f5c4158371bb13d44c9 (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 4f3e5eeb333dc74fb81470131d8d0e8b3d383ed4
Author: David Teigland <[email protected]> Date: Tue May 6 14:28:03 2008 -0500
dlm_controld: code for info/debug queries
-----------------------------------------------------------------------
Summary of changes:
dlm/libdlmcontrol/libdlmcontrol.h | 64 ++++++++- dlm/libdlmcontrol/main.c | 59 ++++++++- group/dlm_controld/cpg.c | 259 ++++++++++++++++++++++++++++++++++--- group/dlm_controld/dlm_controld.h | 15 +- group/dlm_controld/dlm_daemon.h | 7 +- group/dlm_controld/group.c | 17 ++- group/dlm_controld/main.c | 72 +++++++--- 7 files changed, 431 insertions(+), 62 deletions(-)
dlm/libdlmcontrol/libdlmcontrol.h +57 -7
@@ -25,25 +25,74 @@#define DLMC_DUMP_SIZE (1024 * 1024) +#define DLMC_NF_MEMBER 0x00000001/* node is member in cg */ +#define DLMC_NF_START 0x00000002/* start message recvd for cg */ +#define DLMC_NF_DISALLOWED 0x00000004/* node disallowed in cg */ +#define DLMC_NF_CHECK_FENCING 0x00000008 +#define DLMC_NF_CHECK_QUORUM 0x00000010 +#define DLMC_NF_CHECK_FS 0x00000020 +#define DLMC_NF_FS_NOTIFIED 0x00000040 +struct dlmc_node {int nodeid; -int member; +uint32_t flags; +uint32_t added_seq; +uint32_t removed_seq; +int failed_reason; }; -struct dlmc_lockspace { +struct dlmc_change {int member_count; -int state; +int joined_count; +int remove_count; +int failed_count; +int wait_condition;/* 0 no, 1 fencing, 2 quorum, 3 fs */ +int wait_messages;/* 0 no, 1 yes */ +uint32_t seq; +uint32_t combined_seq; +}; + +#define DLMC_LF_JOINING 0x00000001 +#define DLMC_LF_LEAVING 0x00000002 +#define DLMC_LF_KERNEL_STOPPED 0x00000004 +#define DLMC_LF_FS_REGISTERED 0x00000008 +#define DLMC_LF_NEED_PLOCKS 0x00000010 +#define DLMC_LF_SAVE_PLOCKS 0x00000020 + +struct dlmc_lockspace { +struct dlmc_change cg_prev;/* completed change (started_change) */ +struct dlmc_change cg_next;/* in-progress change (changes list) */ +uint32_t flags; +uint32_t global_id; +char name[DLM_LOCKSPACE_LEN +1 ]; }; -/* dlmc_lockspace_nodes() types */ +/* dlmc_lockspace_nodes() types + +MEMBERS: members in completed (prev) change, +zero if there's no completed (prev) change +NEXT: members in in-progress (next) change, +zero if there's no in-progress (next) change +ALL: NEXT + nonmembers if there's an in-progress (next) change, +MEMBERS + nonmembers if there's no in-progress (next) change, but +there is a completed (prev) change +nonmembers if there's no in-progress (next) or completed (prev) +change (possible?) + +dlmc_node_info() returns info for in-progress (next) change, if one exists, +otherwise it returns info for completed (prev) change. +*/ +#define DLMC_NODES_ALL 1#define DLMC_NODES_MEMBERS 2 +#define DLMC_NODES_NEXT 3int dlmc_dump_debug (char *buf);int dlmc_dump_plocks (char *name,char *buf); -int dlmc_node_info (char *name,int nodeid,struct dlmc_node *node); -int dlmc_lockspace_info (char *name,struct dlmc_lockspace *ls); -int dlmc_lockspace_nodes (char *name,int type,int max,int *count, +int dlmc_lockspace_info (char *lsname,struct dlmc_lockspace *ls); +int dlmc_node_info (char *lsname,int nodeid,struct dlmc_node *node); +int dlmc_lockspaces (int max,int *count,struct dlmc_lockspace *lss); +int dlmc_lockspace_nodes (char *lsname,int type,int max,int *count,struct dlmc_node *nodes);int dlmc_fs_connect (void );
@@ -56,3 +105,4 @@ int dlmc_fs_result(int fd, char *name, int *type, int *nodeid, int *result);int dlmc_deadlock_check (char *name);#endif +
dlm/libdlmcontrol/main.c +58 -1
71 lines not on this page · raw message
group/dlm_controld/cpg.c +240 -19
401 lines not on this page · raw message
group/dlm_controld/dlm_controld.h +8 -7
@@ -24,13 +24,14 @@#define DLMC_CMD_DUMP_DEBUG 1#define DLMC_CMD_DUMP_PLOCKS 2 -#define DLMC_CMD_NODE_INFO 3 -#define DLMC_CMD_LOCKSPACE_INFO 4 -#define DLMC_CMD_LOCKSPACE_NODES 5 -#define DLMC_CMD_FS_REGISTER 6 -#define DLMC_CMD_FS_UNREGISTER 7 -#define DLMC_CMD_FS_NOTIFIED 8 -#define DLMC_CMD_DEADLOCK_CHECK 9 +#define DLMC_CMD_LOCKSPACE_INFO 3 +#define DLMC_CMD_NODE_INFO 4 +#define DLMC_CMD_LOCKSPACES 5 +#define DLMC_CMD_LOCKSPACE_NODES 6 +#define DLMC_CMD_FS_REGISTER 7 +#define DLMC_CMD_FS_UNREGISTER 8 +#define DLMC_CMD_FS_NOTIFIED 9 +#define DLMC_CMD_DEADLOCK_CHECK 10struct dlmc_header {unsigned int magic;
group/dlm_controld/dlm_daemon.h +5 -2
@@ -222,8 +222,9 @@ char *msg_name(int type);void update_flow_control_status (void );int set_node_info (struct lockspace *ls,int nodeid,struct dlmc_node *node);int set_lockspace_info (struct lockspace *ls,struct dlmc_lockspace *lockspace); +int set_lockspaces (int *count,struct dlmc_lockspace **lss_out);int set_lockspace_nodes (struct lockspace *ls,int option,int *node_count, -struct dlmc_node **nodes); +struct dlmc_node **nodes_out);int set_fs_notified (struct lockspace *ls,int nodeid);/* deadlock.c */
@@ -278,9 +279,11 @@ int setup_groupd(void);void process_groupd (int ci);int dlm_join_lockspace_group (struct lockspace *ls);int dlm_leave_lockspace_group (struct lockspace *ls); -int set_node_info_group (struct lockspace *ls,int nodeid,struct dlmc_node *node); +int set_node_info_group (struct lockspace *ls,int nodeid, +struct dlmc_node *node);int set_lockspace_info_group (struct lockspace *ls,struct dlmc_lockspace *lockspace); +int set_lockspaces_group (int *count,struct dlmc_lockspace **lss_out);int set_lockspace_nodes_group (struct lockspace *ls,int option,int *node_count,struct dlmc_node **nodes);
group/dlm_controld/group.c +13 -4
@@ -240,19 +240,28 @@ int setup_groupd(void)return rv; } -int set_node_info_group (struct lockspace *ls,int nodeid,struct dlmc_node *node) +/* FIXME: most of the query info doesn't apply in the LIBGROUP mode, +but we can emulate some basic parts of it */ + +int set_lockspace_info_group (struct lockspace *ls, +struct dlmc_lockspace *lockspace) {return 0 ; } -int set_lockspace_info_group (struct lockspace *ls, -struct dlmc_lockspace *lockspace) +int set_node_info_group (struct lockspace *ls,int nodeid, +struct dlmc_node *node) +{ +return 0 ; +} + +int set_lockspaces_group (int *count,struct dlmc_lockspace **lss_out) {return 0 ; }int set_lockspace_nodes_group (struct lockspace *ls,int option,int *node_count, -struct dlmc_node **nodes) +struct dlmc_node **nodes_out) {return 0 ; }
group/dlm_controld/main.c +50 -22
121 lines not on this page · raw message
hooks/post-receive
--
Cluster Project