Changeset d858a660 in mainline for uspace/lib/fdisk/src/fdisk.c


Ignore:
Timestamp:
2017-07-04T15:05:43Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9c2c7d2
Parents:
2456fd0
Message:

Fdisk should print volume labels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/fdisk/src/fdisk.c

    r2456fd0 rd858a660  
    269269                part->pcnt = vpinfo.pcnt;
    270270                part->fstype = vpinfo.fstype;
     271                part->label = str_dup(vpinfo.label);
    271272        }
    272273
     
    301302        return EOK;
    302303error:
     304        if (part != NULL)
     305                free(part->label);
    303306        free(part);
    304307        return rc;
     
    315318        if (link_used(&part->llog_ba))
    316319                list_remove(&part->llog_ba);
     320
     321        free(part->label);
    317322        free(part);
    318323}
     
    667672        info->fstype = part->fstype;
    668673        info->pkind = part->pkind;
     674        info->label = part->label;
    669675        return EOK;
    670676}
Note: See TracChangeset for help on using the changeset viewer.