Changeset ebb1489 in mainline for uspace/lib/label/src/gpt.c


Ignore:
Timestamp:
2024-10-13T08:23:40Z (2 months ago)
Author:
GitHub <noreply@…>
Children:
0472cf17
Parents:
2a0c827c (diff), b3b79981 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
boba-buba <120932204+boba-buba@…> (2024-10-13 08:23:40)
git-committer:
GitHub <noreply@…> (2024-10-13 08:23:40)
Message:

Merge branch 'HelenOS:master' into topic/packet-capture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/label/src/gpt.c

    r2a0c827c rebb1489  
    443443                gpt_hdr->first_usable_lba = host2uint64_t_le(ba_min);
    444444                gpt_hdr->last_usable_lba = host2uint64_t_le(ba_max);
    445                 uuid_encode(&disk_uuid, gpt_hdr->disk_guid);
     445                uuid_encode_le(&disk_uuid, gpt_hdr->disk_guid);
    446446                gpt_hdr->entry_lba = host2uint64_t_le(ptba[i]);
    447447                gpt_hdr->num_entries = host2uint32_t_le(num_entries);
     
    812812
    813813        memset(pte, 0, sizeof(gpt_entry_t));
    814         uuid_encode(&part->ptype.t.uuid, pte->part_type);
    815         uuid_encode(&part->part_uuid, pte->part_id);
     814        uuid_encode_le(&part->ptype.t.uuid, pte->part_type);
     815        uuid_encode_le(&part->part_uuid, pte->part_id);
    816816        pte->start_lba = host2uint64_t_le(part->block0);
    817817        pte->end_lba = host2uint64_t_le(eblock);
     
    849849        part->nblocks = b1 - b0 + 1;
    850850        part->ptype.fmt = lptf_uuid;
    851         uuid_decode(pte->part_type, &part->ptype.t.uuid);
    852         uuid_decode(pte->part_id, &part->part_uuid);
     851        uuid_decode_le(pte->part_type, &part->ptype.t.uuid);
     852        uuid_decode_le(pte->part_id, &part->part_uuid);
    853853
    854854        part->label = label;
Note: See TracChangeset for help on using the changeset viewer.