Changeset 2d78d88 in mainline for uspace/lib/label/src
- Timestamp:
- 2018-07-25T17:04:03Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- efa3136
- Parents:
- bec18a9
- Location:
- uspace/lib/label/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/label/src/gpt.c
rbec18a9 r2d78d88 580 580 } 581 581 582 static bool gpt_can_modify_part(label_t *label) 583 { 584 return list_count(&label->parts) > 0; 585 } 586 582 587 static errno_t gpt_get_info(label_t *label, label_info_t *linfo) 583 588 { … … 589 594 if (gpt_can_delete_part(label)) 590 595 linfo->flags = linfo->flags | lf_can_delete_part; 596 if (gpt_can_modify_part(label)) 597 linfo->flags = linfo->flags | lf_can_modify_part; 591 598 linfo->ablock0 = label->ablock0; 592 599 linfo->anblocks = label->anblocks; -
uspace/lib/label/src/mbr.c
rbec18a9 r2d78d88 428 428 } 429 429 430 static bool mbr_can_modify_part(label_t *label) 431 { 432 return list_count(&label->parts) > 0; 433 } 434 435 430 436 static errno_t mbr_get_info(label_t *label, label_info_t *linfo) 431 437 { … … 448 454 if (mbr_can_delete_part(label)) 449 455 linfo->flags |= lf_can_delete_part; 456 /* Can modify partition */ 457 if (mbr_can_modify_part(label)) 458 linfo->flags |= lf_can_modify_part; 450 459 451 460 linfo->ablock0 = label->ablock0;
Note:
See TracChangeset
for help on using the changeset viewer.