Changes in uspace/app/init/init.c [73d8600:b19e892] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/init/init.c

    r73d8600 rb19e892  
    4141#include <stdbool.h>
    4242#include <errno.h>
    43 #include <fcntl.h>
    44 #include <sys/stat.h>
    4543#include <task.h>
    4644#include <malloc.h>
     
    5048#include <str_error.h>
    5149#include <config.h>
     50#include <io/logctl.h>
    5251#include "init.h"
    5352
     
    127126                opts = "restore";
    128127       
    129         int rc = vfs_mount(fstype, ROOT_MOUNT_POINT, ROOT_DEVICE, opts,
     128        int rc = vfs_mount_path(ROOT_MOUNT_POINT, fstype, ROOT_DEVICE, opts,
    130129            IPC_FLAG_BLOCKING, 0);
     130        if (rc == EOK)
     131                logctl_set_root();
    131132        return mount_report("Root filesystem", ROOT_MOUNT_POINT, fstype,
    132133            ROOT_DEVICE, rc);
     
    144145static bool mount_locfs(void)
    145146{
    146         int rc = vfs_mount(LOCFS_FS_TYPE, LOCFS_MOUNT_POINT, "", "",
     147        int rc = vfs_mount_path(LOCFS_MOUNT_POINT, LOCFS_FS_TYPE, "", "",
    147148            IPC_FLAG_BLOCKING, 0);
    148149        return mount_report("Location service filesystem", LOCFS_MOUNT_POINT,
     
    153154{
    154155        struct stat s;
    155         if (stat(path, &s) != 0) {
     156        if (vfs_stat_path(path, &s) != EOK) {
    156157                printf("%s: Unable to stat %s\n", NAME, path);
    157158                return ENOENT;
     
    300301static bool mount_tmpfs(void)
    301302{
    302         int rc = vfs_mount(TMPFS_FS_TYPE, TMPFS_MOUNT_POINT, "", "", 0, 0);
     303        int rc = vfs_mount_path(TMPFS_MOUNT_POINT, TMPFS_FS_TYPE, "", "", 0, 0);
    303304        return mount_report("Temporary filesystem", TMPFS_MOUNT_POINT,
    304305            TMPFS_FS_TYPE, NULL, rc);
Note: See TracChangeset for help on using the changeset viewer.