Skip to contentSkip to conversation

Cluster Project branch, STABLE2, updated. cluster-2.03.04-26-g47cf8d5

Cluster-devel [email protected] 1 participant 1 message Jun 23, 2008

lore
Share & tools
lore
#0 lore raw

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".

http://sources.redhat.com/git/gitweb.cgi?p=cluster.git;a=commitdiff;h=47cf8d572161f188b60e56625cd6fc150879dc03

The branch, STABLE2 has been updated

       via  47cf8d572161f188b60e56625cd6fc150879dc03 (commit)
      from  7ea2a4dce8d413d6d0f0c86833cf71ca8082b7ef (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 47cf8d572161f188b60e56625cd6fc150879dc03

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.

-----------------------------------------------------------------------

Summary of changes:

 cman/qdisk/crc32.c       |    8 -----
 cman/qdisk/daemon_init.c |    3 +-
 cman/qdisk/disk.h        |    1 -
 cman/qdisk/disk_util.c   |   69 +------------------------------------------
 cman/qdisk/main.c        |   73 +++++++++++++--------------------------------
 cman/qdisk/proc.c        |    8 ++--
 cman/qdisk/score.c       |   56 ++---------------------------------
 cman/qdisk/score.h       |    5 ---
 8 files changed, 31 insertions(+), 192 deletions(-)
cman/qdisk/crc32.c +0 -8
index 796fac9..597d0b7 100644
@@ -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
index 460bef3..e0b5374 100644
@@ -28,7 +28,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);
 
 /*
@@ -38,7 +37,7 @@ static void update_pidfile(char *prog);
 static int setup_sigmask(void);
 
 
-int
+static int
 check_pid_valid(pid_t pid, char *prog)
 {
 	FILE *fp;
cman/qdisk/disk.h +0 -1
index d56ffc7..0062c86 100644
@@ -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/main.c +21 -52

190 lines not on this page · raw message

cman/qdisk/proc.c +4 -4
index 09a53ef..2f0b6b0 100644
@@ -69,7 +69,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;
@@ -123,7 +123,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;
@@ -147,7 +147,7 @@ print_status_block(status_block_t *sb)
 }
 
 
-void
+static void
 read_info(char *dev)
 {
 	target_info_t ti;
@@ -177,7 +177,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
index 368a9fc..77e155b 100644
@@ -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