Changeset 2d78d88 in mainline for uspace/srv/volsrv/part.c


Ignore:
Timestamp:
2018-07-25T17:04:03Z (7 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/srv/volsrv/part.c

    rbec18a9 r2d78d88  
    679679}
    680680
     681/** Set partition mount point.
     682 *
     683 * Set the partition mount point, (un-, re-)mounting the partition as necessary.
     684 *
     685 * @param part Partition
     686 * @param mountp
     687 *
     688 * @return EOK on success or error code
     689 */
     690errno_t vol_part_set_mountp_part(vol_part_t *part, const char *mountp)
     691{
     692        errno_t rc;
     693
     694        if (part->cur_mp != NULL) {
     695                rc = vol_part_eject_part(part);
     696                if (rc != EOK)
     697                        return rc;
     698        }
     699
     700        rc = vol_part_mountp_set(part, mountp);
     701        if (rc != EOK)
     702                return rc;
     703
     704        rc = vol_part_mount(part);
     705        if (rc != EOK)
     706                return rc;
     707
     708        return EOK;
     709}
     710
    681711errno_t vol_part_get_info(vol_part_t *part, vol_part_info_t *pinfo)
    682712{
Note: See TracChangeset for help on using the changeset viewer.