Changeset 241f1985 in mainline for uspace/srv/sysman/units/unit_mnt.c


Ignore:
Timestamp:
2019-08-31T10:45:17Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
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)
Message:

Correcting failure from previous merge

The commits from Michal Koutný from the branch system-daemon
where built on a old version of Helenos. Because of this
many types and API functions have changed. This commit
upgrades the merge code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/sysman/units/unit_mnt.c

    rf92b315 r241f1985  
    130130}
    131131
    132 static int unit_mnt_load(unit_t *unit, ini_configuration_t *ini_conf,
     132static errno_t unit_mnt_load(unit_t *unit, ini_configuration_t *ini_conf,
    133133    text_parse_t *text_parse)
    134134{
     
    148148}
    149149
    150 static int mount_exec(void *arg)
     150static errno_t mount_exec(void *arg)
    151151{
    152152        mount_data_t *mnt_data = arg;
     
    156156            mnt_data->flags, mnt_data->instance);
    157157
    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,
    159159            mnt_data->options ? mnt_data->options : "",
    160160            mnt_data->flags, mnt_data->instance);
     
    188188}
    189189
    190 static int unit_mnt_start(unit_t *unit)
     190static errno_t unit_mnt_start(unit_t *unit)
    191191{
    192192        unit_mnt_t *u_mnt = CAST_MNT(unit);
     
    228228}
    229229
    230 static int unit_mnt_stop(unit_t *unit)
     230static errno_t unit_mnt_stop(unit_t *unit)
    231231{
    232232        unit_mnt_t *u_mnt = CAST_MNT(unit);
     
    245245         * unmount synchronously in the event loop fibril.
    246246         */
    247         int rc = unmount(u_mnt->mountpoint);
     247        errno_t rc = vfs_unmount_path(u_mnt->mountpoint);
    248248
    249249        if (rc == EOK) {
Note: See TracChangeset for help on using the changeset viewer.