Changes in uspace/app/init/init.c [b19e892:73d8600] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/init/init.c
rb19e892 r73d8600 41 41 #include <stdbool.h> 42 42 #include <errno.h> 43 #include <fcntl.h> 44 #include <sys/stat.h> 43 45 #include <task.h> 44 46 #include <malloc.h> … … 48 50 #include <str_error.h> 49 51 #include <config.h> 50 #include <io/logctl.h>51 52 #include "init.h" 52 53 … … 126 127 opts = "restore"; 127 128 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, 129 130 IPC_FLAG_BLOCKING, 0); 130 if (rc == EOK)131 logctl_set_root();132 131 return mount_report("Root filesystem", ROOT_MOUNT_POINT, fstype, 133 132 ROOT_DEVICE, rc); … … 145 144 static bool mount_locfs(void) 146 145 { 147 int rc = vfs_mount _path(LOCFS_MOUNT_POINT, LOCFS_FS_TYPE, "", "",146 int rc = vfs_mount(LOCFS_FS_TYPE, LOCFS_MOUNT_POINT, "", "", 148 147 IPC_FLAG_BLOCKING, 0); 149 148 return mount_report("Location service filesystem", LOCFS_MOUNT_POINT, … … 154 153 { 155 154 struct stat s; 156 if ( vfs_stat_path(path, &s) != EOK) {155 if (stat(path, &s) != 0) { 157 156 printf("%s: Unable to stat %s\n", NAME, path); 158 157 return ENOENT; … … 301 300 static bool mount_tmpfs(void) 302 301 { 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); 304 303 return mount_report("Temporary filesystem", TMPFS_MOUNT_POINT, 305 304 TMPFS_FS_TYPE, NULL, rc);
Note:
See TracChangeset
for help on using the changeset viewer.