Changeset 241f1985 in mainline for uspace/srv/sysman/units/unit_mnt.c
- Timestamp:
- 2019-08-31T10:45:17Z (5 years ago)
- Children:
- 102f641
- Parents:
- f92b315
- git-author:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-23 22:04:34)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-31 10:45:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/sysman/units/unit_mnt.c
rf92b315 r241f1985 130 130 } 131 131 132 static int unit_mnt_load(unit_t *unit, ini_configuration_t *ini_conf,132 static errno_t unit_mnt_load(unit_t *unit, ini_configuration_t *ini_conf, 133 133 text_parse_t *text_parse) 134 134 { … … 148 148 } 149 149 150 static int mount_exec(void *arg)150 static errno_t mount_exec(void *arg) 151 151 { 152 152 mount_data_t *mnt_data = arg; … … 156 156 mnt_data->flags, mnt_data->instance); 157 157 158 int rc = mount(mnt_data->type, mnt_data->mountpoint, mnt_data->device,158 errno_t rc = vfs_mount_path(mnt_data->type, mnt_data->mountpoint, mnt_data->device, 159 159 mnt_data->options ? mnt_data->options : "", 160 160 mnt_data->flags, mnt_data->instance); … … 188 188 } 189 189 190 static int unit_mnt_start(unit_t *unit)190 static errno_t unit_mnt_start(unit_t *unit) 191 191 { 192 192 unit_mnt_t *u_mnt = CAST_MNT(unit); … … 228 228 } 229 229 230 static int unit_mnt_stop(unit_t *unit)230 static errno_t unit_mnt_stop(unit_t *unit) 231 231 { 232 232 unit_mnt_t *u_mnt = CAST_MNT(unit); … … 245 245 * unmount synchronously in the event loop fibril. 246 246 */ 247 int rc = unmount(u_mnt->mountpoint);247 errno_t rc = vfs_unmount_path(u_mnt->mountpoint); 248 248 249 249 if (rc == EOK) {
Note:
See TracChangeset
for help on using the changeset viewer.