Joel Becker 0f71b7b40f ocfs2: Fix endian bug in o2dlm protocol negotiation.
struct dlm_query_join_packet is made up of four one-byte fields.  They
are effectively in big-endian order already.  However, little-endian
machines swap them before putting the packet on the wire (because
query_join's response is a status, and that status is treated as a u32
on the wire).  Thus, a big-endian and little-endian machines will
treat this structure differently.

The solution is to have little-endian machines swap the structure when
converting from the structure to the u32 representation.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
2008-03-10 15:13:54 -07:00
..
2007-10-16 09:42:58 -07:00
2008-01-25 14:45:34 -08:00
2008-03-03 15:50:21 -08:00
2007-10-12 11:54:38 -07:00
2008-01-25 15:05:44 -08:00
2007-04-26 15:10:40 -07:00
2008-01-25 15:05:45 -08:00
2008-01-25 15:05:43 -08:00
2008-01-25 15:05:44 -08:00
2008-01-25 15:05:19 -08:00
2007-05-02 15:07:16 -07:00
2008-01-25 14:46:01 -08:00
2008-01-25 15:05:44 -08:00
2008-02-03 17:33:42 +02:00
2008-01-25 15:05:48 -08:00
2008-01-25 14:45:34 -08:00
2008-01-25 14:45:34 -08:00
2008-02-03 17:33:42 +02:00
2007-05-07 12:12:51 -07:00
2008-01-25 15:05:46 -08:00