Changeset ebb1489 in mainline for uspace/lib/label/src/gpt.c
- Timestamp:
- 2024-10-13T08:23:40Z (2 months ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/label/src/gpt.c
r2a0c827c rebb1489 443 443 gpt_hdr->first_usable_lba = host2uint64_t_le(ba_min); 444 444 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); 446 446 gpt_hdr->entry_lba = host2uint64_t_le(ptba[i]); 447 447 gpt_hdr->num_entries = host2uint32_t_le(num_entries); … … 812 812 813 813 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); 816 816 pte->start_lba = host2uint64_t_le(part->block0); 817 817 pte->end_lba = host2uint64_t_le(eblock); … … 849 849 part->nblocks = b1 - b0 + 1; 850 850 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); 853 853 854 854 part->label = label;
Note:
See TracChangeset
for help on using the changeset viewer.