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


Ignore:
File:
1 edited

Legend:

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

    rb19e892 r73d8600  
    4141#include <stdbool.h>
    4242#include <errno.h>
     43#include <fcntl.h>
     44#include <sys/stat.h>
    4345#include <task.h>
    4446#include <malloc.h>
     
    4850#include <str_error.h>
    4951#include <config.h>
    50 #include <io/logctl.h>
    5152#include "init.h"
    5253
     
    126127                opts = "restore";
    127128       
    128         int rc = vfs_mount_path(ROOT_MOUNT_POINT, fstype, ROOT_DEVICE, opts,
     129        int rc = vfs_mount(fstype, ROOT_MOUNT_POINT, ROOT_DEVICE, opts,
    129130            IPC_FLAG_BLOCKING, 0);
    130         if (rc == EOK)
    131                 logctl_set_root();
    132131        return mount_report("Root filesystem", ROOT_MOUNT_POINT, fstype,
    133132            ROOT_DEVICE, rc);
     
    145144static bool mount_locfs(void)
    146145{
    147         int rc = vfs_mount_path(LOCFS_MOUNT_POINT, LOCFS_FS_TYPE, "", "",
     146        int rc = vfs_mount(LOCFS_FS_TYPE, LOCFS_MOUNT_POINT, "", "",
    148147            IPC_FLAG_BLOCKING, 0);
    149148        return mount_report("Location service filesystem", LOCFS_MOUNT_POINT,
     
    154153{
    155154        struct stat s;
    156         if (vfs_stat_path(path, &s) != EOK) {
     155        if (stat(path, &s) != 0) {
    157156                printf("%s: Unable to stat %s\n", NAME, path);
    158157                return ENOENT;
     
    301300static bool mount_tmpfs(void)
    302301{
    303         int rc = vfs_mount_path(TMPFS_MOUNT_POINT, TMPFS_FS_TYPE, "", "", 0, 0);
     302        int rc = vfs_mount(TMPFS_FS_TYPE, TMPFS_MOUNT_POINT, "", "", 0, 0);
    304303        return mount_report("Temporary filesystem", TMPFS_MOUNT_POINT,
    305304            TMPFS_FS_TYPE, NULL, rc);
Note: See TracChangeset for help on using the changeset viewer.