All of lore.kernel.org
 help / color / mirror / Atom feed
From: lhh@sourceware.org <lhh@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/rgmanager ChangeLog include/resgroup.h
Date: 14 Jun 2007 19:08:57 -0000	[thread overview]
Message-ID: <20070614190857.14762.qmail@sourceware.org> (raw)

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



             reply	other threads:[~2007-06-14 19:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-14 19:08 lhh [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-06-27 13:37 [Cluster-devel] cluster/rgmanager ChangeLog include/resgroup.h lhh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070614190857.14762.qmail@sourceware.org \
    --to=lhh@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.