Changeset 1c8bfe8 in mainline for uspace/lib/mbr/libmbr.c


Ignore:
Timestamp:
2013-06-25T00:27:47Z (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:
6317b33, 9256d093
Parents:
6e8e4e19 (diff), cb328ab (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.
Message:

GPT updates

File:
1 edited

Legend:

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

    r6e8e4e19 r1c8bfe8  
    9494 */
    9595int mbr_read_mbr(mbr_label_t *label, service_id_t dev_handle)
    96 {
    97         if (label == NULL)
    98                 return EINVAL;
    99        
     96{       
    10097        int rc;
    10198       
     
    195192               
    196193                rc_ext = decode_part(&(label->mbr->raw_data.pte[i]), p, 0);
    197                 printf("p: %d %u %u\n", rc_ext, p->start_addr, p->length);
    198194                mbr_set_flag(p, ST_LOGIC, false);
    199195                rc = mbr_add_partition(label, p);
     
    207203                if (rc_ext) {
    208204                        ext = p;
    209                         printf("ext: %u %u\n", p->start_addr, p->length);
    210205                        label->parts->l_extended = &p->link;
    211206                }
     
    231226int mbr_write_partitions(mbr_label_t *label, service_id_t dev_handle)
    232227{
     228        if (label->parts == NULL)
     229                return EOK;
     230       
     231        if (label->mbr == NULL)
     232                label->mbr = mbr_alloc_mbr();
     233       
    233234        int i = 0;
    234235        int rc;
     
    248249        for (i = 0; i < N_PRIMARY; i++) {
    249250                p = list_get_instance(l, mbr_part_t, link);     
    250                 printf("status: %hu\n", p->status);
    251251                encode_part(p, &(label->mbr->raw_data.pte[i]), 0, false);
    252252                l = l->next;
Note: See TracChangeset for help on using the changeset viewer.