All of lore.kernel.org
 help / color / mirror / Atom feed
* [hail patch 2/3] fix 32/64 wire interoperability
@ 2010-08-04 23:16 Pete Zaitcev
  2010-08-05 21:25 ` Jeff Garzik
  0 siblings, 1 reply; 3+ messages in thread
From: Pete Zaitcev @ 2010-08-04 23:16 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Project Hail List

Testing found that tabled and chunkd running on CPUs with different
word length cannot talk to each other.

The bug was introduced by commit ea5d20bc22aeed077312c9c1824e84651af17a16.

The fix is to add named padding that takes the place of the invisible
padding, thus making the layout platform-neutral.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>

---
 include/chunk_msg.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/include/chunk_msg.h b/include/chunk_msg.h
index a34fc21..4c170e4 100644
--- a/include/chunk_msg.h
+++ b/include/chunk_msg.h
@@ -91,6 +91,7 @@ struct chunksrv_resp {
 	uint32_t		nonce;	/* txn id, copied from request */
 	uint64_t		data_len;		/* len of addn'l data */
 	unsigned char		hash[CHD_CSUM_SZ];	/* SHA1 checksum */
+	unsigned char		rsv2[4];		/* pad for 64 bits */
 };
 
 struct chunksrv_resp_get {

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-05 23:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-04 23:16 [hail patch 2/3] fix 32/64 wire interoperability Pete Zaitcev
2010-08-05 21:25 ` Jeff Garzik
2010-08-05 23:19   ` Pete Zaitcev

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.