Changeset 0435fe41 in mainline for uspace/lib/mbr/libmbr.c
- Timestamp:
- 2013-08-27T00:32:08Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 61ab4a9, 802898f
- Parents:
- 493b881
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/mbr/libmbr.c
r493b881 r0435fe41 170 170 mbr_part_t *p; 171 171 mbr_part_t *ext = NULL; 172 //mbr_partitions_t *parts;173 172 174 173 if (label->parts != NULL) … … 598 597 } 599 598 600 / / Internal functions follow //599 /* Internal functions follow */ 601 600 602 601 static br_block_t *alloc_br() … … 732 731 { 733 732 if (src != NULL) { 734 //trgt->status = mbr_get_flag(src, ST_BOOT) ? B_ACTIVE : B_INACTIVE;735 733 trgt->status = (uint8_t) (src->status & 0xFF); 736 734 /* ingoring CHS */ … … 741 739 trgt->last_chs[1] = 0xFF; 742 740 trgt->last_chs[2] = 0xFF; 743 if (ebr) { / / encoding reference to EBR741 if (ebr) { /* encoding reference to EBR */ 744 742 trgt->ptype = PT_EXTENDED_LBA; 745 743 trgt->first_lba = host2uint32_t_le(src->ebr_addr - base); 746 744 trgt->length = host2uint32_t_le(src->length + src->start_addr - src->ebr_addr); 747 } else { / / encoding reference to partition745 } else { /* encoding reference to partition */ 748 746 trgt->ptype = src->type; 749 747 trgt->first_lba = host2uint32_t_le(src->start_addr - base); … … 850 848 bool first_logical = true; 851 849 mbr_part_t *iter; 852 mbr_part_foreach (label, iter) {850 mbr_part_foreach (label, iter) { 853 851 if (mbr_get_flag(iter, ST_LOGIC)) { 854 852 if (check_overlap(p, iter))
Note:
See TracChangeset
for help on using the changeset viewer.