Changes in uspace/app/init/init.c [dc2d582:73d8600] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/init/init.c
rdc2d582 r73d8600 49 49 #include <loc.h> 50 50 #include <str_error.h> 51 #include <config.h> 51 52 #include "init.h" 52 53 … … 126 127 opts = "restore"; 127 128 128 int rc = mount(fstype, ROOT_MOUNT_POINT, ROOT_DEVICE, opts,129 int rc = vfs_mount(fstype, ROOT_MOUNT_POINT, ROOT_DEVICE, opts, 129 130 IPC_FLAG_BLOCKING, 0); 130 131 return mount_report("Root filesystem", ROOT_MOUNT_POINT, fstype, … … 143 144 static bool mount_locfs(void) 144 145 { 145 int rc = mount(LOCFS_FS_TYPE, LOCFS_MOUNT_POINT, "", "",146 int rc = vfs_mount(LOCFS_FS_TYPE, LOCFS_MOUNT_POINT, "", "", 146 147 IPC_FLAG_BLOCKING, 0); 147 148 return mount_report("Location service filesystem", LOCFS_MOUNT_POINT, … … 152 153 { 153 154 struct stat s; 154 if (stat(path, &s) == ENOENT) {155 if (stat(path, &s) != 0) { 155 156 printf("%s: Unable to stat %s\n", NAME, path); 156 157 return ENOENT; … … 299 300 static bool mount_tmpfs(void) 300 301 { 301 int rc = mount(TMPFS_FS_TYPE, TMPFS_MOUNT_POINT, "", "", 0, 0);302 int rc = vfs_mount(TMPFS_FS_TYPE, TMPFS_MOUNT_POINT, "", "", 0, 0); 302 303 return mount_report("Temporary filesystem", TMPFS_MOUNT_POINT, 303 304 TMPFS_FS_TYPE, NULL, rc); … … 306 307 int main(int argc, char *argv[]) 307 308 { 309 int rc; 310 308 311 info_print(); 309 312 … … 356 359 srv_start("/srv/hound"); 357 360 358 int rc = compositor(HID_INPUT, HID_COMPOSITOR_SERVER); 359 if (rc == EOK) { 360 gui_start("/app/barber", HID_COMPOSITOR_SERVER); 361 gui_start("/app/vlaunch", HID_COMPOSITOR_SERVER); 362 gui_start("/app/vterm", HID_COMPOSITOR_SERVER); 361 if (!config_key_exists("console")) { 362 rc = compositor(HID_INPUT, HID_COMPOSITOR_SERVER); 363 if (rc == EOK) { 364 gui_start("/app/barber", HID_COMPOSITOR_SERVER); 365 gui_start("/app/vlaunch", HID_COMPOSITOR_SERVER); 366 gui_start("/app/vterm", HID_COMPOSITOR_SERVER); 367 } 363 368 } 364 369
Note:
See TracChangeset
for help on using the changeset viewer.