Changeset 03661d19 in mainline for uspace/lib/label/src/mbr.c
- Timestamp:
- 2015-10-29T10:16:08Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 55f8c6e7
- Parents:
- 9854a8f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/label/src/mbr.c
r9854a8f r03661d19 512 512 int rc; 513 513 514 log_msg(LOG_DEFAULT, LVL_NOTE, "mbr_part_create"); 514 515 if (pspec->ptype.fmt != lptf_num) 515 516 return EINVAL; … … 521 522 522 523 /* XXX Check if index is used */ 523 524 524 part->label = label; 525 525 part->index = pspec->index; … … 545 545 break; 546 546 case lpk_logical: 547 log_msg(LOG_DEFAULT, LVL_NOTE, "check index");548 547 part->ptype = pspec->ptype; 549 548 if (pspec->index != 0) { … … 587 586 } else { 588 587 /* Logical partition */ 589 590 log_msg(LOG_DEFAULT, LVL_NOTE, "call mbr_log_part_insert");591 588 rc = mbr_log_part_insert(label, part); 592 589 if (rc != EOK) 593 590 goto error; 594 591 595 log_msg(LOG_DEFAULT, LVL_NOTE, "call mbr_ebr_create");596 592 /* Create EBR for new partition */ 597 593 rc = mbr_ebr_create(label, part); … … 601 597 prev = mbr_log_part_prev(part); 602 598 if (prev != NULL) { 603 log_msg(LOG_DEFAULT, LVL_NOTE, "update next");604 599 /* Update 'next' PTE in EBR of previous partition */ 605 600 rc = mbr_ebr_update_next(label, prev); 606 601 if (rc != EOK) { 607 log_msg(LOG_DEFAULT, LVL_NOTE, "failed to update next");608 602 goto error; 609 603 } 610 604 } else { 611 log_msg(LOG_DEFAULT, LVL_NOTE, "relocate first EBR");612 605 /* New partition is now the first one */ 613 606 next = mbr_log_part_next(part);
Note:
See TracChangeset
for help on using the changeset viewer.