Cluster Project branch, master, updated. cluster-2.99.04-51-g9e51310
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 9e513104970a78be352cfeea7d557378618b283b (commit)
via b7dd415ecba984f8ad20205c5291bef203381906 (commit)
via 48c81719df1cf67e1905b8c74deea944633c40a5 (commit)
via 44b80c950cd4d942b69f38faeeca44feffce944f (commit)
via 08e1518655285271a922e1ef5b4d6c0665f97551 (commit)
via 0cd62a286d8057196b05783d2fb84da2816c187b (commit)
via e152f256d1caddeab7dd0a82ab22d577d51545f0 (commit)
from d1c086c706bce8fee73491bfda52cffae4e1fc51 (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 9e513104970a78be352cfeea7d557378618b283b
Author: Fabio M. Di Nitto <[email protected]> Date: Fri Jun 20 16:19:54 2008 +0200
[QDISK] Major clean up
Kill lots of dead and unused code around.
Switch whatever possible into static functions.
commit b7dd415ecba984f8ad20205c5291bef203381906
Author: Fabio M. Di Nitto <[email protected]> Date: Fri Jun 20 15:45:44 2008 +0200
[QDISK] Init logsys later in the process
commit 48c81719df1cf67e1905b8c74deea944633c40a5
Author: Fabio M. Di Nitto <[email protected]> Date: Fri Jun 20 15:41:34 2008 +0200
[QDISK] Clean handling of debug envvar
commit 44b80c950cd4d942b69f38faeeca44feffce944f
Author: Fabio M. Di Nitto <[email protected]> Date: Fri Jun 20 15:39:29 2008 +0200
[QDISK] Remove duplicate debugging configuration
commit 08e1518655285271a922e1ef5b4d6c0665f97551
Author: Fabio M. Di Nitto <[email protected]> Date: Fri Jun 20 15:36:10 2008 +0200
[QDISK] get_config_data cleanup
get_config_data does not need cluster name.
change invokation from ccs_force_connect to ccs_connect. ccs_force_connect returns only when connection is succesful and can sit there forever.
With the new libccs, if we are connected to cman, we can be 100% sure that we will be able to do a ccs_connect.
commit 0cd62a286d8057196b05783d2fb84da2816c187b
Author: Fabio M. Di Nitto <[email protected]> Date: Fri Jun 20 15:34:03 2008 +0200
[QDISK] Make get_config_data static
commit e152f256d1caddeab7dd0a82ab22d577d51545f0
Author: Fabio M. Di Nitto <[email protected]> Date: Fri Jun 20 15:33:08 2008 +0200
[QDISK] Fix debug type
-----------------------------------------------------------------------
Summary of changes:
cman/qdisk/Makefile | 1 - cman/qdisk/crc32.c | 8 ---- cman/qdisk/daemon_init.c | 3 +- cman/qdisk/disk.h | 1 - cman/qdisk/disk_util.c | 69 +------------------------------- cman/qdisk/gettid.c | 24 ----------- cman/qdisk/gettid.h | 7 --- cman/qdisk/main.c | 97 +++++++++++++++------------------------------- cman/qdisk/proc.c | 8 ++-- cman/qdisk/score.c | 56 +------------------------- cman/qdisk/score.h | 5 -- 11 files changed, 42 insertions(+), 237 deletions(-) delete mode 100644 cman/qdisk/gettid.c delete mode 100644 cman/qdisk/gettid.h
cman/qdisk/Makefile +0 -1
@@ -24,7 +24,6 @@ EXTRA_LDFLAGS += -L${cmanlibdir} -L${ccslibdir} -lcman -lccs OBJS1= main.o \ score.o \ bitmap.o \ - gettid.o \ daemon_init.o OBJS2= mkqdisk.o
cman/qdisk/crc32.c +0 -8
@@ -95,11 +95,3 @@ uint32_t clu_crc32(const char *data, size_t count)return 0 ;return ~crc; } - -#if 0 -int -main (int argc,const char **argv) -{ -printf ("%08x\n" ,crc32 (argv[1 ],strlen (argv[1 ]))); -} -#endif
cman/qdisk/daemon_init.c +1 -2
@@ -29,7 +29,6 @@* This should ultimately go in a header file. */ void daemon_init (char *prog); -int check_pid_valid (pid_t pid,char *prog);int check_process_running (char *prog,pid_t * pid);/*
@@ -40,7 +39,7 @@ static int setup_sigmask(void);LOGSYS_DECLARE_SUBSYS ("QDISK" ,LOG_LEVEL_INFO ); -int +static int check_pid_valid (pid_t pid,char *prog) {FILE *fp;
cman/qdisk/disk.h +0 -1
@@ -268,7 +268,6 @@ typedef struct {int qd_write_status (qd_ctx *ctx,int nid,disk_node_state_t state,disk_msg_t *msg,memb_mask_t mask,memb_mask_t master); -int qd_read_print_status (target_info_t *disk,int nid);int qd_init (qd_ctx *ctx,cman_handle_t ch,int me);void qd_destroy (qd_ctx *ctx);
cman/qdisk/disk_util.c +2 -67
84 lines not on this page · raw message
cman/qdisk/gettid.c deleted +0 -24
@@ -1,24 +0,0 @@ -#include <sys/types.h> -#include <sys/syscall.h> -#include <linux/unistd.h> -#include <gettid.h> -#include <unistd.h> -#include <errno.h> - -/* Patch from Adam Conrad / Ubuntu: Don't use _syscall macro */ - -#ifdef __NR_gettid -pid_t gettid (void ) -{ -return syscall (__NR_gettid); -} -#else - -#warn "gettid not available -- substituting with pthread_self()" - -#include <pthread.h> -pid_t gettid (void ) -{ -return (pid_t )pthread_self (); -} -#endif
cman/qdisk/gettid.h deleted +0 -7
@@ -1,7 +0,0 @@ -#ifndef __GETTID_H -#define __GETTID_H - -pid_t gettid (void ); - -#endif -
cman/qdisk/main.c +32 -65
251 lines not on this page · raw message
cman/qdisk/proc.c +4 -4
@@ -71,7 +71,7 @@ check_device(char *device, char *label, quorum_header_t *qh, } -void +static void filter_devs (struct devnode *node,void *v_args) {struct device_args *args = (struct device_args *)v_args;
@@ -125,7 +125,7 @@ state_str(disk_node_state_t s) } -void +static void print_status_block (status_block_t *sb) {time_t timestamp = (time_t )sb->ps_timestamp;
@@ -149,7 +149,7 @@ print_status_block(status_block_t *sb) } -void +static void read_info (char *dev) {target_info_t ti;
@@ -179,7 +179,7 @@ read_info(char *dev) } -void +static void print_qdisk_info (struct devnode *dn) {quorum_header_t *qh = (quorum_header_t *)dn->filter;
cman/qdisk/score.c +3 -53
83 lines not on this page · raw message
cman/qdisk/score.h +0 -5
@@ -24,11 +24,6 @@ struct h_data {*/ int configure_heuristics (int ccsfd,struct h_data *hp,int max); -/* -Stop the thread which runs the scoring applets. -*/ -int stop_score_thread (void ); -/* Start the thread which runs the scoring applets */
hooks/post-receive
--
Cluster Project