On Thu, May 16, 2013 at 04:45:55PM +0200, Stefan Behrens wrote:
> +struct btrfs_uuid_item {
> + __le16 type; /* refer to BTRFS_UUID_ITEM_TYPE* defines above */
> + __le32 len; /* number of following 64bit values */
> + __le64 data[0]; /* data aligned to 64bit */
> +} __attribute__ ((__packed__));
With __packed__ (which is preferrably written as __packed) the data is
not aligned to u64 as the comment says. Aligning u64's is a good thing,
so (for example) pad the space after type (I don't think we need more
than u16 here).
david
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html