Changeset 5126f80 in mainline for uspace/app
- Timestamp:
- 2017-03-08T11:42:17Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0d35511
- Parents:
- a737667e
- git-author:
- Jiri Zarevucky <zarevucky.jiri@…> (2017-03-08 11:42:17)
- git-committer:
- Jakub Jermar <jakub@…> (2017-03-08 11:42:17)
- Location:
- uspace/app
- Files:
-
- 5 edited
-
bdsh/cmds/modules/mount/mount.c (modified) (1 diff)
-
bdsh/cmds/modules/unmount/unmount.c (modified) (1 diff)
-
init/init.c (modified) (3 diffs)
-
sysinst/sysinst.c (modified) (3 diffs)
-
trace/trace.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/mount/mount.c
ra737667e r5126f80 151 151 mopts = t_argv[4]; 152 152 153 rc = vfs_mount(t_argv[1], t_argv[2], dev, mopts, 0, instance);153 rc = mount(t_argv[1], t_argv[2], dev, mopts, 0, instance); 154 154 if (rc != EOK) { 155 155 printf("Unable to mount %s filesystem to %s on %s (rc=%s)\n", -
uspace/app/bdsh/cmds/modules/unmount/unmount.c
ra737667e r5126f80 66 66 } 67 67 68 rc = vfs_unmount(argv[1]);68 rc = unmount(argv[1]); 69 69 if (rc != EOK) { 70 70 printf("Unable to unmount %s (rc=%d)\n", argv[1], rc); -
uspace/app/init/init.c
ra737667e r5126f80 127 127 opts = "restore"; 128 128 129 int rc = vfs_mount(fstype, ROOT_MOUNT_POINT, ROOT_DEVICE, opts,129 int rc = mount(fstype, ROOT_MOUNT_POINT, ROOT_DEVICE, opts, 130 130 IPC_FLAG_BLOCKING, 0); 131 131 return mount_report("Root filesystem", ROOT_MOUNT_POINT, fstype, … … 144 144 static bool mount_locfs(void) 145 145 { 146 int rc = vfs_mount(LOCFS_FS_TYPE, LOCFS_MOUNT_POINT, "", "",146 int rc = mount(LOCFS_FS_TYPE, LOCFS_MOUNT_POINT, "", "", 147 147 IPC_FLAG_BLOCKING, 0); 148 148 return mount_report("Location service filesystem", LOCFS_MOUNT_POINT, … … 300 300 static bool mount_tmpfs(void) 301 301 { 302 int rc = vfs_mount(TMPFS_FS_TYPE, TMPFS_MOUNT_POINT, "", "", 0, 0);302 int rc = mount(TMPFS_FS_TYPE, TMPFS_MOUNT_POINT, "", "", 0, 0); 303 303 return mount_report("Temporary filesystem", TMPFS_MOUNT_POINT, 304 304 TMPFS_FS_TYPE, NULL, rc); -
uspace/app/sysinst/sysinst.c
ra737667e r5126f80 180 180 181 181 printf("sysinst_fs_mount(): mount filesystem\n"); 182 rc = vfs_mount(FS_TYPE, MOUNT_POINT, dev, "", 0, 0);182 rc = mount(FS_TYPE, MOUNT_POINT, dev, "", 0, 0); 183 183 if (rc != EOK) 184 184 return rc; … … 219 219 220 220 printf("sysinst_copy_boot_files(): mount CD filesystem\n"); 221 rc = vfs_mount(CD_FS_TYPE, CD_MOUNT_POINT, CD_DEV, "", 0, 0);221 rc = mount(CD_FS_TYPE, CD_MOUNT_POINT, CD_DEV, "", 0, 0); 222 222 if (rc != EOK) 223 223 return rc; … … 229 229 230 230 printf("sysinst_copy_boot_files(): unmount %s\n", MOUNT_POINT); 231 rc = vfs_unmount(MOUNT_POINT);231 rc = unmount(MOUNT_POINT); 232 232 if (rc != EOK) 233 233 return rc; -
uspace/app/trace/trace.c
ra737667e r5126f80 512 512 goto error; 513 513 514 /* Send program pathname*/514 /* Send program. */ 515 515 rc = loader_set_program_path(ldr, path); 516 516 if (rc != EOK) … … 523 523 524 524 /* Send default files */ 525 int fd_root; 525 526 int fd_stdin; 526 527 int fd_stdout; 527 528 int fd_stderr; 529 530 fd_root = vfs_root(); 531 if (fd_root >= 0) { 532 rc = loader_add_inbox(ldr, "root", fd_root); 533 close(fd_root); 534 if (rc != EOK) 535 goto error; 536 } 528 537 529 538 if ((stdin != NULL) && (vfs_fhandle(stdin, &fd_stdin) == EOK)) {
Note:
See TracChangeset
for help on using the changeset viewer.
