Changeset 2d78d88 in mainline for uspace/srv/volsrv/part.c
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/volsrv/part.c
rbec18a9 r2d78d88 679 679 } 680 680 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 */ 690 errno_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 681 711 errno_t vol_part_get_info(vol_part_t *part, vol_part_info_t *pinfo) 682 712 {
Note:
See TracChangeset
for help on using the changeset viewer.