Changeset 368ee04 in mainline for uspace/app/sysinst/sysinst.c
- Timestamp:
- 2017-04-05T18:10:39Z (7 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/sysinst/sysinst.c
r39f892a9 r368ee04 43 43 #include <stdio.h> 44 44 #include <stdlib.h> 45 #include <sys/stat.h>46 45 #include <task.h> 47 46 #include <vfs/vfs.h> … … 175 174 return EIO; 176 175 177 rc = mkdir(MOUNT_POINT, 0);176 rc = vfs_link_path(MOUNT_POINT, KIND_DIRECTORY, NULL); 178 177 if (rc != EOK) 179 178 return rc; 180 179 181 180 printf("sysinst_fs_mount(): mount filesystem\n"); 182 rc = vfs_mount (FS_TYPE, MOUNT_POINT, dev, "", 0, 0);181 rc = vfs_mount_path(MOUNT_POINT, FS_TYPE, dev, "", 0, 0); 183 182 if (rc != EOK) 184 183 return rc; … … 214 213 215 214 printf("sysinst_copy_boot_files(): create CD mount point\n"); 216 rc = mkdir(CD_MOUNT_POINT, 0);215 rc = vfs_link_path(CD_MOUNT_POINT, KIND_DIRECTORY, NULL); 217 216 if (rc != EOK) 218 217 return rc; 219 218 220 219 printf("sysinst_copy_boot_files(): mount CD filesystem\n"); 221 rc = vfs_mount (CD_FS_TYPE, CD_MOUNT_POINT, CD_DEV, "", 0, 0);220 rc = vfs_mount_path(CD_MOUNT_POINT, CD_FS_TYPE, CD_DEV, "", 0, 0); 222 221 if (rc != EOK) 223 222 return rc; … … 229 228 230 229 printf("sysinst_copy_boot_files(): unmount %s\n", MOUNT_POINT); 231 rc = vfs_unmount (MOUNT_POINT);230 rc = vfs_unmount_path(MOUNT_POINT); 232 231 if (rc != EOK) 233 232 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.