Changeset 9bda5d90 in mainline for uspace/lib/mbr/libmbr.c


Ignore:
Timestamp:
2013-05-03T01:20:11Z (12 years ago)
Author:
Dominik Taborsky (AT DOT) <brembyseznamcz>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
469739f, c9f61150, f6c8fca
Parents:
700f89e
Message:

libmbr final

File:
1 edited

Legend:

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

    r700f89e r9bda5d90  
    5454
    5555/** Allocate memory for mbr_t */
    56 mbr_t * mbr_alloc_mbr()
    57 {
    58         return alloc_br();
     56mbr_t * mbr_alloc_mbr(void)
     57{
     58        return malloc(sizeof(mbr_t));
    5959}
    6060
     
    405405               
    406406                // if it's extended, is there any other one?
    407                 if (p->type == PT_EXTENDED && parts->l_extended != NULL) {
     407                if ((p->type == PT_EXTENDED || p->type == PT_EXTENDED_LBA) && parts->l_extended != NULL) {
    408408                        return ERR_EXTENDED_PRESENT;
    409409                }
     
    425425                }
    426426                parts->n_primary += 1;
     427               
     428                if (p->type == PT_EXTENDED || p->type == PT_EXTENDED_LBA)
     429                        parts->l_extended = &(p->link);
    427430        }
    428431
Note: See TracChangeset for help on using the changeset viewer.