Cluster Project branch, master, updated. gfs-kernel_0_1_22-158-g77bce77
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 77bce77b5034adf8f00090b13dde7c7d481b0dd9 (commit)
from d2d49ff4c65cb6c7912c20a4a55b1d7e60cd3a85 (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 77bce77b5034adf8f00090b13dde7c7d481b0dd9
Author: David Teigland <[email protected]> Date: Wed Mar 19 16:05:20 2008 -0500
dlm_controld: new version
- uses libcpg directly without libgroup (use the -g0 option)
- takes over plock handling from gfs_controld
- interacts with fenced and fs_controld to coordinate recovery (todo)
- runs in backward compat mode by default, using libgroup to interact with old groupd/dlm_controld (-g1 option)
- plan to add a new default -g2 option that will detect old groupd's in the cluster and only run in old mode if any exist
-----------------------------------------------------------------------
Summary of changes:
group/dlm_controld/Makefile | 13 +-
group/dlm_controld/action.c | 443 ++-----
group/dlm_controld/config.c | 288 ++++
group/dlm_controld/config.h | 56 +
group/dlm_controld/cpg.c | 1383 ++++++++++++++++++++
.../gfs2_disk_hash.h => group/dlm_controld/crc.c | 13 +-
group/dlm_controld/deadlock.c | 326 +----
group/dlm_controld/dlm_daemon.h | 189 +++-
group/dlm_controld/group.c | 45 +-
group/dlm_controld/main.c | 597 +++++----
group/dlm_controld/member_cman.c | 9 +-
group/dlm_controld/netlink.c | 237 ++++
group/{gfs_controld => dlm_controld}/plock.c | 807 ++++++------
group/include/list.h | 11 +
14 files changed, 3078 insertions(+), 1339 deletions(-)
create mode 100644 group/dlm_controld/config.c
create mode 100644 group/dlm_controld/config.h
create mode 100644 group/dlm_controld/cpg.c
copy gfs2/include/gfs2_disk_hash.h => group/dlm_controld/crc.c (96%)
create mode 100644 group/dlm_controld/netlink.c
copy group/{gfs_controld => dlm_controld}/plock.c (71%)group/dlm_controld/Makefile +9 -4
@@ -22,11 +22,16 @@ include $(OBJDIR)/make/clean.mk include $(OBJDIR)/make/install.mk include $(OBJDIR)/make/uninstall.mk -OBJS= main.o \ +OBJS= action.o \ + config.o \ + cpg.o \ + crc.o \ + deadlock.o \ + main.o \ member_cman.o \ - group.o \ - action.o \ - deadlock.o + netlink.o \ + plock.o \ + group.o CFLAGS += -I${ccsincdir} -I${cmanincdir} -I${dlmincdir} -I${openaisincdir} CFLAGS += -I${KERNEL_SRC}/include/
group/dlm_controld/action.c +132 -311
564 lines not on this page · raw message
group/dlm_controld/config.c new file +288 -0
288 lines not on this page · raw message
group/dlm_controld/config.h new file +56 -0
56 lines not on this page · raw message
group/dlm_controld/cpg.c new file +1383 -0
1,383 lines not on this page · raw message
group/dlm_controld/crc.c renamed from gfs2/include/gfs2_disk_hash.h +6 -7
@@ -11,11 +11,9 @@******************************************************************************* ******************************************************************************/ -#ifndef __GFS2_DISK_HASH_DOT_H__ -#define __GFS2_DISK_HASH_DOT_H__ +#include "dlm_daemon.h" -static const uint32_t crc_32_tab[] = -{ +static const uint32_t crc_32_tab[] = {0x00000000 ,0x77073096 ,0xee0e612c ,0x990951ba ,0x076dc419 ,0x706af48f ,0xe963a535 ,0x9e6495a3 ,0x0edb8832 ,0x79dcb8a4 ,0xe0d5e91e ,0x97d2d988 ,0x09b64c2b ,0x7eb17cbd ,0xe7b82d07 ,0x90bf1d91 ,0x1db71064 ,0x6ab020f2 ,0xf3b97148 ,0x84be41de ,0x1adad47d ,0x6ddde4eb ,0xf4d4b551 ,0x83d385c7 ,
@@ -51,6 +49,9 @@ static const uint32_t crc_32_tab[] = };/** +* +* Copied from: +* * gfs2_disk_hash - hash an array of data * @data: the data to be hashed * @len: the length of data to be hashed
@@ -70,7 +71,7 @@ static const uint32_t crc_32_tab[] =* Returns: the hash */ -uint32_t gfs2_disk_hash (const char *data,int len) +uint32_t cpgname_to_crc (const char *data,int len) {uint32_t hash =0xFFFFFFFF ;
@@ -82,5 +83,3 @@ uint32_t gfs2_disk_hash(const char *data, int len)return hash; } -#endif -
group/dlm_controld/deadlock.c +38 -288
525 lines not on this page · raw message
group/dlm_controld/dlm_daemon.h +152 -37
129 lines not on this page · raw message
group/dlm_controld/group.c +34 -11
45 lines not on this page · raw message
group/dlm_controld/main.c +307 -290
597 lines not on this page · raw message
group/dlm_controld/netlink.c new file +237 -0
237 lines not on this page · raw message
group/dlm_controld/plock.c renamed from group/gfs_controld/plock.c +421 -386
807 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
hooks/post-receive
--
Cluster Project
Part of the diff is not shown here. View the raw message.
[Cluster-devel] kernel for building master
Quoted 15 lines · teigland at sourceware.org
- Log ----------------------------------------------------------------- commit
77bce77b5034adf8f00090b13dde7c7d481b0dd9Author: David Teigland <[email protected]> Date: Wed Mar 19 16:05:20 2008 -0500
dlm_controld: new version- uses libcpg directly without libgroup (use the -g0 option)
- takes over plock handling fromgfs_controld
- interacts with fenced andfs_controldto coordinate recovery (todo)
- runs in backward compat mode by default, using libgroup to interact with old groupd/dlm_controld (-g1 option)
- plan to add a new default -g2 option that will detect old groupd's in the cluster and only run in old mode if any exist
Quoted 3 lines
Signed-off-by David Teigland <[email protected]>-----------------------------------------------------------------------
This commit assumes dlm kernel changes that are only available in linux-next or linux-mm (linux/dlm_plock.h). This goes against our aim to keep master building against -rc kernels by default, so the following patch disables the relevant part for now. Fabio has said he may turn this ifdef into something more sophisticated.
group/dlm_controld/main.c +2 -0
@@ -546,11 +546,13 @@ static int loop(void)setup_deadlock (); } +#ifdef BUILD_PLOCK rv =setup_plocks ();if (rv <0 ) goto out; plock_fd = rv; plock_ci =client_add (rv, process_plocks,NULL ); +#endif BUILD_PLOCK }for (;;) {
group/dlm_controld/plock.c +20 -0
@@ -12,6 +12,8 @@#include "dlm_daemon.h" #include "config.h" + +#ifdef BUILD_PLOCK #include <linux/dlm_plock.h> #define PROC_MISC "/proc/misc"
@@ -2293,3 +2295,21 @@ int dump_plocks(char *name, int fd) return 0; } +#else + +int setup_plocks(void) { return 0 }; +void process_plocks(int ci) { }; +int limit_plocks(void) { return 0; }; +void receive_plock(struct lockspace *ls, struct dlm_header *hd, int len) { }; +void receive_own(struct lockspace *ls, struct dlm_header *hd, int len) { }; +void receive_sync(struct lockspace *ls, struct dlm_header *hd, int len) { }; +void receive_drop(struct lockspace *ls, struct dlm_header *hd, int len) { }; +void process_saved_plocks(struct lockspace *ls) { }; +void close_plock_checkpoint(struct lockspace *ls) { }; +void store_plocks(struct lockspace *ls) { }; +void retrieve_plocks(struct lockspace *ls) { }; +void purge_plocks(struct lockspace *ls, int nodeid, int unmount) { }; +int dump_plocks(char *name, int fd) { return 0 }; + +#endif +