[Cluster-devel] [PATCH 5/5] gfs2_edit: Fix unaligned accesses due to saved_metablock size

Bob Peterson rpeterso at redhat.com
Thu Jan 12 16:02:00 UTC 2017


----- Original Message -----
| Each saved block is prefixed by a saved_metablock structure that holds
| its block number and data length. Unfortunately this structure is 10
| bytes in size, which means that storing the metadata header in memory
| immediately following it causes accesses to the header fields to be
| unaligned. This causes testsuite failures on sparc64. Instead, on
| restore, use a separate buffer for the block data to ensure aligned
| accesses to those fields.
| 
| Reported-By: Valentin Vidic <Valentin.Vidic at CARNet.hr>
| Signed-off-by: Andrew Price <anprice at redhat.com>
| ---

Hi,

ACK

Bob Peterson
Red Hat File Systems




More information about the Cluster-devel mailing list