diff options
author | Milan Broz <mbroz@redhat.com> | 2011-08-09 18:11:00 +0000 |
---|---|---|
committer | Milan Broz <mbroz@redhat.com> | 2011-08-09 18:11:00 +0000 |
commit | 7cf607705baf20423ef2a1929495ecb9c139b9a1 (patch) | |
tree | 6d1323983d3202ba93ceed2942003a39bf497c65 /daemons/clvmd/clvmd.c | |
parent | 2061c0ec24887cbf4a74f2355150890474ed84cf (diff) | |
download | lvm2-7cf607705baf20423ef2a1929495ecb9c139b9a1.tar.gz lvm2-7cf607705baf20423ef2a1929495ecb9c139b9a1.tar.xz lvm2-7cf607705baf20423ef2a1929495ecb9c139b9a1.zip |
Remove obsoleted GULM clvmd cluster locking support.
Diffstat (limited to 'daemons/clvmd/clvmd.c')
-rw-r--r-- | daemons/clvmd/clvmd.c | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/daemons/clvmd/clvmd.c b/daemons/clvmd/clvmd.c index 703268f1..07883eaa 100644 --- a/daemons/clvmd/clvmd.c +++ b/daemons/clvmd/clvmd.c @@ -78,7 +78,6 @@ struct lvm_thread_cmd { }; struct lvm_startup_params { - int using_gulm; char **argv; }; @@ -101,7 +100,7 @@ static int child_pipe[2]; #define DFAIL_TIMEOUT 5 #define SUCCESS 0 -typedef enum {IF_AUTO, IF_CMAN, IF_GULM, IF_OPENAIS, IF_COROSYNC, IF_SINGLENODE} if_type_t; +typedef enum {IF_AUTO, IF_CMAN, IF_OPENAIS, IF_COROSYNC, IF_SINGLENODE} if_type_t; /* Prototypes for code further down */ static void sigusr2_handler(int sig); @@ -166,9 +165,6 @@ static void usage(const char *prog, FILE *file) #ifdef USE_OPENAIS "openais " #endif -#ifdef USE_GULM - "gulm " -#endif #ifdef USE_SINGLENODE "singlenode " #endif @@ -342,7 +338,6 @@ int main(int argc, char *argv[]) int start_timeout = 0; if_type_t cluster_iface = IF_AUTO; sigset_t ss; - int using_gulm = 0; int debug_opt = 0; debug_t debug_arg = DEBUG_OFF; int clusterwide_opt = 0; @@ -473,7 +468,7 @@ int main(int argc, char *argv[]) /* Set up signal handlers, USR1 is for cluster change notifications (in cman) USR2 causes child threads to exit. - HUP causes gulm version to re-read nodes list from CCS. + HUP causes to re-read nodes list from CCS. PIPE should be ignored */ signal(SIGUSR2, sigusr2_handler); signal(SIGHUP, sighup_handler); @@ -505,16 +500,6 @@ int main(int argc, char *argv[]) syslog(LOG_NOTICE, "Cluster LVM daemon started - connected to CMAN"); } #endif -#ifdef USE_GULM - if (!clops) - if ((cluster_iface == IF_AUTO || cluster_iface == IF_GULM) && (clops = init_gulm_cluster())) { - max_csid_len = GULM_MAX_CSID_LEN; - max_cluster_message = GULM_MAX_CLUSTER_MESSAGE; - max_cluster_member_name_len = GULM_MAX_CLUSTER_MEMBER_NAME_LEN; - using_gulm = 1; - syslog(LOG_NOTICE, "Cluster LVM daemon started - connected to GULM"); - } -#endif #ifdef USE_COROSYNC if (!clops) if (((cluster_iface == IF_AUTO || cluster_iface == IF_COROSYNC) && (clops = init_corosync_cluster()))) { @@ -580,14 +565,10 @@ int main(int argc, char *argv[]) /* Don't let anyone else to do work until we are started */ pthread_mutex_lock(&lvm_start_mutex); - lvm_params.using_gulm = using_gulm; lvm_params.argv = argv; pthread_create(&lvm_thread, NULL, lvm_thread_fn, &lvm_params); /* Tell the rest of the cluster our version number */ - /* CMAN can do this immediately, gulm needs to wait until - the core initialisation has finished and the node list - has been gathered */ if (clops->cluster_init_completed) clops->cluster_init_completed(); @@ -625,7 +606,7 @@ int main(int argc, char *argv[]) return 0; } -/* Called when the GuLM cluster layer has completed initialisation. +/* Called when the cluster layer has completed initialisation. We send the version message */ void clvmd_cluster_init_completed(void) { @@ -1965,7 +1946,7 @@ static void *lvm_thread_fn(void *arg) pthread_sigmask(SIG_BLOCK, &ss, NULL); /* Initialise the interface to liblvm */ - init_clvm(lvm_params->using_gulm, lvm_params->argv); + init_clvm(lvm_params->argv); /* Allow others to get moving */ pthread_mutex_unlock(&lvm_start_mutex); @@ -2222,8 +2203,6 @@ static if_type_t parse_cluster_interface(char *ifname) iface = IF_AUTO; if (!strcmp(ifname, "cman")) iface = IF_CMAN; - if (!strcmp(ifname, "gulm")) - iface = IF_GULM; if (!strcmp(ifname, "openais")) iface = IF_OPENAIS; if (!strcmp(ifname, "corosync")) |