Changeset 0435fe41 in mainline for uspace/lib/mbr/libmbr.c


Ignore:
Timestamp:
2013-08-27T00:32:08Z (11 years ago)
Author:
Dominik Taborsky (AT DOT) <brembyseznamcz>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
61ab4a9, 802898f
Parents:
493b881
Message:

polishing libmbr, libgpt, hdisk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/mbr/libmbr.c

    r493b881 r0435fe41  
    170170        mbr_part_t *p;
    171171        mbr_part_t *ext = NULL;
    172         //mbr_partitions_t *parts;
    173172       
    174173        if (label->parts != NULL)
     
    598597}
    599598
    600 // Internal functions follow //
     599/* Internal functions follow */
    601600
    602601static br_block_t *alloc_br()
     
    732731{
    733732        if (src != NULL) {
    734                 //trgt->status = mbr_get_flag(src, ST_BOOT) ? B_ACTIVE : B_INACTIVE;
    735733                trgt->status = (uint8_t) (src->status & 0xFF);
    736734                /* ingoring CHS */
     
    741739                trgt->last_chs[1] = 0xFF;
    742740                trgt->last_chs[2] = 0xFF;
    743                 if (ebr) {      // encoding reference to EBR
     741                if (ebr) {      /* encoding reference to EBR */
    744742                        trgt->ptype = PT_EXTENDED_LBA;
    745743                        trgt->first_lba = host2uint32_t_le(src->ebr_addr - base);
    746744                        trgt->length = host2uint32_t_le(src->length + src->start_addr - src->ebr_addr);
    747                 } else {        // encoding reference to partition
     745                } else {        /* encoding reference to partition */
    748746                        trgt->ptype = src->type;
    749747                        trgt->first_lba = host2uint32_t_le(src->start_addr - base);
     
    850848        bool first_logical = true;
    851849        mbr_part_t *iter;
    852         mbr_part_foreach(label, iter) {
     850        mbr_part_foreach (label, iter) {
    853851                if (mbr_get_flag(iter, ST_LOGIC)) {
    854852                        if (check_overlap(p, iter))
Note: See TracChangeset for help on using the changeset viewer.