unsigned char *buf)
{
struct hfs_mdb *hfs = (struct hfs_mdb *)buf;
- unsigned long long *uuid_ptr;
char uuid_str[17];
__u64 uuid;
(memcmp(hfs->embed_sig, "HX", 2) == 0))
return 1; /* Not hfs, but an embedded HFS+ */
- uuid_ptr = (unsigned long long *)hfs->finder_info.id;
- uuid = blkid_le64(*uuid_ptr);
+ memcpy(&uuid, hfs->finder_info.id, 8);
+ uuid = blkid_le64(uuid);
if (uuid) {
sprintf(uuid_str, "%016llX", uuid);
blkid_set_tag(probe->dev, "UUID", uuid_str, 0);
unsigned int leaf_node_size;
unsigned int leaf_block;
unsigned int label_len;
- unsigned long long *uuid_ptr;
__u64 leaf_off, uuid;
char uuid_str[17], label[512];
int ext;
(memcmp(hfsplus->signature, "HX", 2) != 0))
return 1;
- uuid_ptr = (unsigned long long *)hfsplus->finder_info.id;
- uuid = blkid_le64(*uuid_ptr);
+ memcpy(&uuid, hfsplus->finder_info.id, 8);
+ uuid = blkid_le64(uuid);
if (uuid) {
sprintf(uuid_str, "%016llX", uuid);
blkid_set_tag(probe->dev, "UUID", uuid_str, 0);