Changeset 2d78d88 in mainline for uspace/lib/label/src/mbr.c


Ignore:
Timestamp:
2018-07-25T17:04:03Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
efa3136
Parents:
bec18a9
Message:

Modifying mount point for a partition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/label/src/mbr.c

    rbec18a9 r2d78d88  
    428428}
    429429
     430static bool mbr_can_modify_part(label_t *label)
     431{
     432        return list_count(&label->parts) > 0;
     433}
     434
     435
    430436static errno_t mbr_get_info(label_t *label, label_info_t *linfo)
    431437{
     
    448454        if (mbr_can_delete_part(label))
    449455                linfo->flags |= lf_can_delete_part;
     456        /* Can modify partition */
     457        if (mbr_can_modify_part(label))
     458                linfo->flags |= lf_can_modify_part;
    450459
    451460        linfo->ablock0 = label->ablock0;
Note: See TracChangeset for help on using the changeset viewer.