Changeset 368ee04 in mainline for uspace/app/init/init.c
- Timestamp:
- 2017-04-05T18:10:39Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 93ad8166
- Parents:
- 39f892a9 (diff), 2166728 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/init/init.c
r39f892a9 r368ee04 41 41 #include <stdbool.h> 42 42 #include <errno.h> 43 #include <fcntl.h>44 #include <sys/stat.h>45 43 #include <task.h> 46 44 #include <malloc.h> … … 50 48 #include <str_error.h> 51 49 #include <config.h> 50 #include <io/logctl.h> 52 51 #include "init.h" 53 52 … … 127 126 opts = "restore"; 128 127 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, 130 129 IPC_FLAG_BLOCKING, 0); 130 if (rc == EOK) 131 logctl_set_root(); 131 132 return mount_report("Root filesystem", ROOT_MOUNT_POINT, fstype, 132 133 ROOT_DEVICE, rc); … … 144 145 static bool mount_locfs(void) 145 146 { 146 int rc = vfs_mount (LOCFS_FS_TYPE, LOCFS_MOUNT_POINT, "", "",147 int rc = vfs_mount_path(LOCFS_MOUNT_POINT, LOCFS_FS_TYPE, "", "", 147 148 IPC_FLAG_BLOCKING, 0); 148 149 return mount_report("Location service filesystem", LOCFS_MOUNT_POINT, … … 153 154 { 154 155 struct stat s; 155 if ( stat(path, &s) != 0) {156 if (vfs_stat_path(path, &s) != EOK) { 156 157 printf("%s: Unable to stat %s\n", NAME, path); 157 158 return ENOENT; … … 300 301 static bool mount_tmpfs(void) 301 302 { 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); 303 304 return mount_report("Temporary filesystem", TMPFS_MOUNT_POINT, 304 305 TMPFS_FS_TYPE, NULL, rc);
Note:
See TracChangeset
for help on using the changeset viewer.