cluster: STABLE32 - cman: Allocate port in cnxman-socket.h for qdiskd
Lon Hohberger
lon at fedoraproject.org
Fri Feb 17 21:37:16 UTC 2012
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=34d2872fb7e60be1594158acaaeb8acd74f78d22
Commit: 34d2872fb7e60be1594158acaaeb8acd74f78d22
Parent: 8947872a56f49f1658d793a8e9b60efa5337eba8
Author: Lon Hohberger <lhh at redhat.com>
AuthorDate: Fri Feb 17 16:36:33 2012 -0500
Committer: Lon Hohberger <lhh at redhat.com>
CommitterDate: Fri Feb 17 16:36:33 2012 -0500
cman: Allocate port in cnxman-socket.h for qdiskd
Signed-off-by: Lon Hohberger <lhh 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 c4f824c..32677a2 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"
@@ -2063,7 +2064,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