Changeset 5126f80 in mainline for uspace/app


Ignore:
Timestamp:
2017-03-08T11:42:17Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
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)
Message:

Merge from lp:~zarevucky-jiri/helenos/vfs-2.5/ revision 1946

Original commit messages:

1946: Jiri Zarevucky 2013-08-06 Relativize mount, add root handle to libc and remove root from VFS server. This wraps up the "relativization" phase.

Breakage:

  • Dynamic builds broken
  • Mount table lookups by name
Location:
uspace/app
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/mount/mount.c

    ra737667e r5126f80  
    151151                mopts = t_argv[4];
    152152
    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);
    154154        if (rc != EOK) {
    155155                printf("Unable to mount %s filesystem to %s on %s (rc=%s)\n",
  • uspace/app/bdsh/cmds/modules/unmount/unmount.c

    ra737667e r5126f80  
    6666        }
    6767
    68         rc = vfs_unmount(argv[1]);
     68        rc = unmount(argv[1]);
    6969        if (rc != EOK) {
    7070                printf("Unable to unmount %s (rc=%d)\n", argv[1], rc);
  • uspace/app/init/init.c

    ra737667e r5126f80  
    127127                opts = "restore";
    128128       
    129         int rc = vfs_mount(fstype, ROOT_MOUNT_POINT, ROOT_DEVICE, opts,
     129        int rc = mount(fstype, ROOT_MOUNT_POINT, ROOT_DEVICE, opts,
    130130            IPC_FLAG_BLOCKING, 0);
    131131        return mount_report("Root filesystem", ROOT_MOUNT_POINT, fstype,
     
    144144static bool mount_locfs(void)
    145145{
    146         int rc = vfs_mount(LOCFS_FS_TYPE, LOCFS_MOUNT_POINT, "", "",
     146        int rc = mount(LOCFS_FS_TYPE, LOCFS_MOUNT_POINT, "", "",
    147147            IPC_FLAG_BLOCKING, 0);
    148148        return mount_report("Location service filesystem", LOCFS_MOUNT_POINT,
     
    300300static bool mount_tmpfs(void)
    301301{
    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);
    303303        return mount_report("Temporary filesystem", TMPFS_MOUNT_POINT,
    304304            TMPFS_FS_TYPE, NULL, rc);
  • uspace/app/sysinst/sysinst.c

    ra737667e r5126f80  
    180180
    181181        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);
    183183        if (rc != EOK)
    184184                return rc;
     
    219219
    220220        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);
    222222        if (rc != EOK)
    223223                return rc;
     
    229229
    230230        printf("sysinst_copy_boot_files(): unmount %s\n", MOUNT_POINT);
    231         rc = vfs_unmount(MOUNT_POINT);
     231        rc = unmount(MOUNT_POINT);
    232232        if (rc != EOK)
    233233                return rc;
  • uspace/app/trace/trace.c

    ra737667e r5126f80  
    512512                goto error;
    513513
    514         /* Send program pathname */
     514        /* Send program. */
    515515        rc = loader_set_program_path(ldr, path);
    516516        if (rc != EOK)
     
    523523
    524524        /* Send default files */
     525        int fd_root;
    525526        int fd_stdin;
    526527        int fd_stdout;
    527528        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        }
    528537       
    529538        if ((stdin != NULL) && (vfs_fhandle(stdin, &fd_stdin) == EOK)) {
Note: See TracChangeset for help on using the changeset viewer.