* [Cluster-devel] cluster/rgmanager ChangeLog include/resgroup.h
@ 2007-06-14 19:08 lhh
0 siblings, 0 replies; 2+ messages in thread
From: lhh @ 2007-06-14 19:08 UTC (permalink / raw)
To: cluster-devel.redhat.com
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: lhh at sourceware.org 2007-06-14 19:08:57
Modified files:
rgmanager : ChangeLog
rgmanager/include: resgroup.h
Log message:
Fix type size for 32/64-bit mixed clusters
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/ChangeLog.diff?cvsroot=cluster&r1=1.46&r2=1.47
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/include/resgroup.h.diff?cvsroot=cluster&r1=1.21&r2=1.22
--- cluster/rgmanager/ChangeLog 2007/06/14 15:06:51 1.46
+++ cluster/rgmanager/ChangeLog 2007/06/14 19:08:57 1.47
@@ -1,3 +1,8 @@
+2007-06-14 Lon Hohberger <lhh@redhat.com>
+ * include/resgroup.h: Fix size incompatibility on 32/64 bit mixed
+ clusters. Put in stubs for intelligent handling of state sizes
+ during a cluster upgrade.
+
2007-06-14 Marek Grac <mgrac@redhat.com>
* src/daemons/main.c, rg_state.c, rg_thread.c,
src/utils/clusvcadm.c
--- cluster/rgmanager/include/resgroup.h 2007/06/14 15:06:51 1.21
+++ cluster/rgmanager/include/resgroup.h 2007/06/14 19:08:57 1.22
@@ -27,15 +27,22 @@
*/
typedef struct {
char rs_name[64]; /**< Service name */
+ /* 64 */
uint32_t rs_id; /**< Service ID */
uint32_t rs_magic; /**< Magic ID */
uint32_t rs_owner; /**< Member ID running service. */
uint32_t rs_last_owner; /**< Last member to run the service. */
+ /* 80 */
uint32_t rs_state; /**< State of service. */
uint32_t rs_restarts; /**< Number of cluster-induced
restarts */
uint64_t rs_transition; /**< Last service transition time */
+ /* 96 */
uint32_t rs_flags; /**< User setted flags */
+ /* 100 */
+ uint8_t rs_version; /**< State version */
+ uint8_t _pad_[3];
+ /* 104 */
} rg_state_t;
#define swab_rg_state_t(ptr) \
@@ -50,6 +57,14 @@
swab32((ptr)->rs_flags);\
}
+#if 0
+/* Future upgrade compatibility */
+#define RG_STATE_MINSIZE 96
+#define RG_STATE_CURRENT_VERSION 1
+
+extern size_t rg_state_t_version_sizes[];
+#endif
+
#define RG_PORT 177
#define RG_MAGIC 0x11398fed
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Cluster-devel] cluster/rgmanager ChangeLog include/resgroup.h
@ 2007-06-27 13:37 lhh
0 siblings, 0 replies; 2+ messages in thread
From: lhh @ 2007-06-27 13:37 UTC (permalink / raw)
To: cluster-devel.redhat.com
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: lhh at sourceware.org 2007-06-27 13:37:15
Modified files:
rgmanager : ChangeLog
rgmanager/include: resgroup.h
Log message:
Fix forward-compatibility to HEAD for RG_STATUS_INQUIRY
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/ChangeLog.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.31.2.15&r2=1.31.2.16
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/include/resgroup.h.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.15.2.5&r2=1.15.2.6
--- cluster/rgmanager/ChangeLog 2007/06/26 21:55:44 1.31.2.15
+++ cluster/rgmanager/ChangeLog 2007/06/27 13:37:15 1.31.2.16
@@ -1,3 +1,7 @@
+2007-06-27 Lon Hohberger <lhh@redhat.com>
+ * include/resgroup.h: Make RG_STATUS_INQUIRY forwards-compatible
+ with -HEAD
+
2007-06-26 Lon Hohberger <lhh@redhat.com>
* src/daemons/vm.sh: Un-break migrate (#231692). Make status
checks happen every 30 seconds instead of 30 minutes.
--- cluster/rgmanager/include/resgroup.h 2007/06/26 21:55:45 1.15.2.5
+++ cluster/rgmanager/include/resgroup.h 2007/06/27 13:37:15 1.15.2.6
@@ -79,7 +79,8 @@
#define RG_UNLOCK 20
#define RG_QUERY_LOCK 21
#define RG_MIGRATE 22
-#define RG_STATUS_INQUIRY 23
+/* Compat: FREEZE = 23, UNFREEZE = 24 */
+#define RG_STATUS_INQUIRY 25
#define RG_NONE 999
const char *rg_req_str(int req);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-06-27 13:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-14 19:08 [Cluster-devel] cluster/rgmanager ChangeLog include/resgroup.h lhh
-- strict thread matches above, loose matches on Subject: below --
2007-06-27 13:37 lhh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).