cluster: RHEL6 - cman: Allocate port in cnxman-socket.h for qdiskd
Lon Hohberger
lon at fedoraproject.org
Mon Feb 20 16:48:23 UTC 2012
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=9d9f4836dd6c62fa1379c6d7f4e82eee265508cf
Commit: 9d9f4836dd6c62fa1379c6d7f4e82eee265508cf
Parent: 3b9975dd964a32f8d673f171a7e052f0e4af6c5d
Author: Lon Hohberger <lhh at redhat.com>
AuthorDate: Fri Feb 17 16:36:33 2012 -0500
Committer: Lon Hohberger <lhh at redhat.com>
CommitterDate: Mon Feb 20 11:46:24 2012 -0500
cman: Allocate port in cnxman-socket.h for qdiskd
Resolves: rhbz#678372
Signed-off-by: Lon Hohberger <lhh at redhat.com>
Signed-off-by: Fabio M. Di Nitto <fdinitto at redhat.com>
---
cman/daemon/cnxman-socket.h | 1 +
cman/qdisk/main.c | 3 ++-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/cman/daemon/cnxman-socket.h b/cman/daemon/cnxman-socket.h
index d243b40..e6bb5dd 100644
--- a/cman/daemon/cnxman-socket.h
+++ b/cman/daemon/cnxman-socket.h
@@ -68,6 +68,7 @@
#define CLUSTER_PORT_SERVICES 2
#define CLUSTER_PORT_SYSMAN 10 /* Remote execution daemon */
#define CLUSTER_PORT_CLVMD 11 /* Cluster LVM daemon */
+#define CLUSTER_PORT_QDISKD 178 /* Quorum disk daemon */
/* Port numbers above this will be blocked when the cluster is inquorate or in
* transition */
diff --git a/cman/qdisk/main.c b/cman/qdisk/main.c
index d613d84..fc714f6 100644
--- a/cman/qdisk/main.c
+++ b/cman/qdisk/main.c
@@ -25,6 +25,7 @@
#include <liblogthread.h>
#include "score.h"
#include "../daemon/cman.h"
+#include "../daemon/cnxman-socket.h"
#include <sys/syslog.h>
#define LOG_DAEMON_NAME "qdiskd"
@@ -2041,7 +2042,7 @@ main(int argc, char **argv)
goto out;
}
- if (cman_start_recv_data(ch_user, qdisk_whine, 178) != 0) {
+ if (cman_start_recv_data(ch_user, qdisk_whine, CLUSTER_PORT_QDISKD) != 0) {
logt_print(LOG_CRIT, "Could not register with CMAN: %s\n",
strerror(errno));
goto out;
More information about the cluster-commits
mailing list