Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/sysinst/sysinst.c

    ra6fc88a r3a34852  
    4343#include <stdio.h>
    4444#include <stdlib.h>
     45#include <sys/stat.h>
    4546#include <task.h>
    4647#include <vfs/vfs.h>
     
    174175                return EIO;
    175176
    176         rc = vfs_link_path(MOUNT_POINT, KIND_DIRECTORY, NULL);
     177        rc = mkdir(MOUNT_POINT, 0);
    177178        if (rc != EOK)
    178179                return rc;
    179180
    180181        printf("sysinst_fs_mount(): mount filesystem\n");
    181         rc = vfs_mount_path(MOUNT_POINT, FS_TYPE, dev, "", 0, 0);
     182        rc = vfs_mount(FS_TYPE, MOUNT_POINT, dev, "", 0, 0);
    182183        if (rc != EOK)
    183184                return rc;
     
    213214
    214215        printf("sysinst_copy_boot_files(): create CD mount point\n");
    215         rc = vfs_link_path(CD_MOUNT_POINT, KIND_DIRECTORY, NULL);
     216        rc = mkdir(CD_MOUNT_POINT, 0);
    216217        if (rc != EOK)
    217218                return rc;
    218219
    219220        printf("sysinst_copy_boot_files(): mount CD filesystem\n");
    220         rc = vfs_mount_path(CD_MOUNT_POINT, CD_FS_TYPE, CD_DEV, "", 0, 0);
     221        rc = vfs_mount(CD_FS_TYPE, CD_MOUNT_POINT, CD_DEV, "", 0, 0);
    221222        if (rc != EOK)
    222223                return rc;
     
    228229
    229230        printf("sysinst_copy_boot_files(): unmount %s\n", MOUNT_POINT);
    230         rc = vfs_unmount_path(MOUNT_POINT);
     231        rc = vfs_unmount(MOUNT_POINT);
    231232        if (rc != EOK)
    232233                return rc;
Note: See TracChangeset for help on using the changeset viewer.