Changeset 64ffd83 in mainline for uspace/lib/fdisk/src/fdisk.c


Ignore:
Timestamp:
2018-07-24T09:43:38Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bec18a9
Parents:
05208d9
git-author:
Jiri Svoboda <jiri@…> (2018-07-23 18:41:45)
git-committer:
Jiri Svoboda <jiri@…> (2018-07-24 09:43:38)
Message:

Configuring mount point for (newly created) paritions.

File:
1 edited

Legend:

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

    r05208d9 r64ffd83  
    729729}
    730730
     731/** Create partition.
     732 *
     733 * Create new partition based on a specification.
     734 *
     735 * @param dev Fdisk device
     736 * @param pspec Partition specification
     737 * @param rpart Place to store pointer to new partition
     738 *
     739 * @return EOK on success or error code
     740 */
    731741errno_t fdisk_part_create(fdisk_dev_t *dev, fdisk_part_spec_t *pspec,
    732742    fdisk_part_t **rpart)
     
    737747        vol_part_info_t vpinfo;
    738748        const char *label;
     749        const char *mountp;
    739750        errno_t rc;
    740751
    741752        label = pspec->label != NULL ? pspec->label : "";
     753        mountp = pspec->mountp != NULL ? pspec->mountp : "";
    742754
    743755        rc = fdisk_part_spec_prepare(dev, pspec, &vpspec);
     
    761773        if (part->svc_id != 0) {
    762774                rc = vol_part_mkfs(dev->fdisk->vol, part->svc_id, pspec->fstype,
    763                     label);
     775                    label, mountp);
    764776                if (rc != EOK && rc != ENOTSUP) {
    765777                        rc = EIO;
Note: See TracChangeset for help on using the changeset viewer.