Ryan,
As we talked about on irc a few days ago, there is no current way to
detect the version of the service engine installed on the system for
openais services. This attached patch puts the version field in the
service engine description that is loaded. Would be interesting to take
the current svn revision and put it in this field, but I don't quite
know how to do that.
Regards
-steve
example:
Mar 31 17:24:56 corosync [SERV ] Service engine loaded: openais 1.1.2
event service B.01.01
Mar 31 17:24:56 corosync [SERV ] Service engine loaded: openais 1.1.2
checkpoint service B.01.01
Mar 31 17:24:56 corosync [SERV ] Service engine loaded: openais 1.1.2
availability management framework B.01.01
Mar 31 17:24:56 corosync [SERV ] Service engine loaded: openais 1.1.2
message service B.03.01
Mar 31 17:24:56 corosync [SERV ] Service engine loaded: openais 1.1.2
distributed locking service B.03.01
Mar 31 17:24:56 corosync [SERV ] Service engine loaded: openais 1.1.2
timer service A.01.01
Mar 31 17:24:56 corosync [SERV ] Service engine loaded: openais 1.1.2
checkpoint service B.01.01
Index: services/evt.c
===================================================================
--- services/evt.c (revision 2124)
+++ services/evt.c (working copy)
@@ -206,7 +206,7 @@
};
struct corosync_service_engine evt_service_engine = {
- .name = "openais event service B.01.01",
+ .name = "openais "PACKAGE_VERSION" event service B.01.01",
.id = EVT_SERVICE,
.private_data_size = sizeof (struct libevt_pd),
.flow_control = COROSYNC_LIB_FLOW_CONTROL_NOT_REQUIRED,
Index: services/ckpt.c
===================================================================
--- services/ckpt.c (revision 2124)
+++ services/ckpt.c (working copy)
@@ -566,7 +566,7 @@
};
struct corosync_service_engine ckpt_service_engine = {
- .name = "openais checkpoint service B.01.01",
+ .name = "openais "PACKAGE_VERSION" checkpoint service B.01.01",
.id = CKPT_SERVICE,
.private_data_size = sizeof (struct ckpt_pd),
.flow_control = COROSYNC_LIB_FLOW_CONTROL_NOT_REQUIRED,
Index: services/tmr.c
===================================================================
--- services/tmr.c (revision 2124)
+++ services/tmr.c (working copy)
@@ -164,7 +164,7 @@
};
struct corosync_service_engine tmr_service_engine = {
- .name = "openais timer service A.01.01",
+ .name = "openais "PACKAGE_VERSION" timer service A.01.01",
.id = TMR_SERVICE,
.private_data_size = sizeof (struct tmr_pd),
.flow_control = COROSYNC_LIB_FLOW_CONTROL_NOT_REQUIRED,
Index: services/amf.c
===================================================================
--- services/amf.c (revision 2124)
+++ services/amf.c (working copy)
@@ -352,7 +352,7 @@
* Exports the interface for the service
*/
static struct corosync_service_engine amf_service_engine = {
- .name = "openais availability management framework B.01.01",
+ .name = "openais "PACKAGE_VERSION" availability management framework B.01.01",
.id = AMF_V2_SERVICE,
.private_data_size = sizeof (struct amf_pd),
.flow_control = COROSYNC_LIB_FLOW_CONTROL_NOT_REQUIRED,
Index: services/lck.c
===================================================================
--- services/lck.c (revision 2124)
+++ services/lck.c (working copy)
@@ -404,7 +404,7 @@
};
struct corosync_service_engine lck_service_engine = {
- .name = "openais distributed locking service B.03.01",
+ .name = "openais "PACKAGE_VERSION" distributed locking service B.03.01",
.id = LCK_SERVICE,
.private_data_size = sizeof (struct lck_pd),
.flow_control = COROSYNC_LIB_FLOW_CONTROL_NOT_REQUIRED,
Index: services/clm.c
===================================================================
--- services/clm.c (revision 2124)
+++ services/clm.c (working copy)
@@ -203,7 +203,7 @@
};
struct corosync_service_engine clm_service_engine = {
- .name = "openais cluster membership service B.01.01",
+ .name = "openais "PACKAGE_VERSION" cluster membership service B.01.01",
.id = CLM_SERVICE,
.private_data_size = sizeof (struct clm_pd),
.flow_control = COROSYNC_LIB_FLOW_CONTROL_NOT_REQUIRED,
Index: services/msg.c
===================================================================
--- services/msg.c (revision 2124)
+++ services/msg.c (working copy)
@@ -804,7 +804,7 @@
};
struct corosync_service_engine msg_service_engine = {
- .name = "openais message service B.03.01",
+ .name = "openais "PACKAGE_VERSION" message service B.03.01",
.id = MSG_SERVICE,
.private_data_size = sizeof (struct msg_pd),
.flow_control = COROSYNC_LIB_FLOW_CONTROL_NOT_REQUIRED,
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais