* include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.

* grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-08-22 16:20:32 +02:00
parent ed7fbf43c2
commit bdb5ba47d8
3 changed files with 14 additions and 1 deletions

View file

@ -97,7 +97,15 @@ typedef struct dva {
* Each block has a 256-bit checksum -- strong enough for cryptographic hashes.
*/
typedef struct zio_cksum {
union
{
grub_uint64_t zc_word[4];
struct
{
grub_uint32_t zc_cut_cksum[5];
grub_uint32_t zc_mac[3];
};
};
} zio_cksum_t;
/*