Changeset 80743a1 in mainline
- Timestamp:
- 2017-04-01T06:49:10Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b19e892
- Parents:
- 6e5562a
- Location:
- uspace
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/mount/mount.c
r6e5562a r80743a1 147 147 mopts = t_argv[4]; 148 148 149 rc = mount(t_argv[1], t_argv[2], dev, mopts, 0, instance);149 rc = vfs_mount_path(t_argv[2], t_argv[1], dev, mopts, 0, instance); 150 150 if (rc != EOK) { 151 151 printf("Unable to mount %s filesystem to %s on %s (rc=%s)\n", 152 t_argv[ 1], t_argv[2], t_argv[3], str_error(rc));152 t_argv[2], t_argv[1], t_argv[3], str_error(rc)); 153 153 return CMD_FAILURE; 154 154 } -
uspace/app/bdsh/cmds/modules/unmount/unmount.c
r6e5562a r80743a1 66 66 } 67 67 68 rc = unmount(argv[1]);68 rc = vfs_unmount_path(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
r6e5562a r80743a1 127 127 opts = "restore"; 128 128 129 int rc = mount(fstype, ROOT_MOUNT_POINT, ROOT_DEVICE, opts,129 int rc = vfs_mount_path(ROOT_MOUNT_POINT, fstype, ROOT_DEVICE, opts, 130 130 IPC_FLAG_BLOCKING, 0); 131 131 if (rc == EOK) … … 146 146 static bool mount_locfs(void) 147 147 { 148 int rc = mount(LOCFS_FS_TYPE, LOCFS_MOUNT_POINT, "", "",148 int rc = vfs_mount_path(LOCFS_MOUNT_POINT, LOCFS_FS_TYPE, "", "", 149 149 IPC_FLAG_BLOCKING, 0); 150 150 return mount_report("Location service filesystem", LOCFS_MOUNT_POINT, … … 302 302 static bool mount_tmpfs(void) 303 303 { 304 int rc = mount(TMPFS_FS_TYPE, TMPFS_MOUNT_POINT, "", "", 0, 0);304 int rc = vfs_mount_path(TMPFS_MOUNT_POINT, TMPFS_FS_TYPE, "", "", 0, 0); 305 305 return mount_report("Temporary filesystem", TMPFS_MOUNT_POINT, 306 306 TMPFS_FS_TYPE, NULL, rc); -
uspace/app/sysinst/sysinst.c
r6e5562a r80743a1 179 179 180 180 printf("sysinst_fs_mount(): mount filesystem\n"); 181 rc = mount(FS_TYPE, MOUNT_POINT, dev, "", 0, 0);181 rc = vfs_mount_path(MOUNT_POINT, FS_TYPE, dev, "", 0, 0); 182 182 if (rc != EOK) 183 183 return rc; … … 218 218 219 219 printf("sysinst_copy_boot_files(): mount CD filesystem\n"); 220 rc = 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); 221 221 if (rc != EOK) 222 222 return rc; … … 228 228 229 229 printf("sysinst_copy_boot_files(): unmount %s\n", MOUNT_POINT); 230 rc = unmount(MOUNT_POINT);230 rc = vfs_unmount_path(MOUNT_POINT); 231 231 if (rc != EOK) 232 232 return rc; -
uspace/lib/c/generic/vfs/vfs.c
r6e5562a r80743a1 255 255 } 256 256 257 int mount(const char *fs_name, const char *mp, const char *fqsn,257 int vfs_mount_path(const char *mp, const char *fs_name, const char *fqsn, 258 258 const char *opts, unsigned int flags, unsigned int instance) 259 259 { … … 342 342 } 343 343 344 int unmount(const char *mpp)344 int vfs_unmount_path(const char *mpp) 345 345 { 346 346 int mp = vfs_lookup(mpp, WALK_MOUNT_POINT | WALK_DIRECTORY); -
uspace/lib/c/include/vfs/vfs.h
r6e5562a r80743a1 75 75 extern char *vfs_absolutize(const char *, size_t *); 76 76 77 extern int mount(const char *, const char *, const char *, const char *,78 unsigned int, unsigned int);79 extern int unmount(const char *);80 81 77 extern int vfs_fhandle(FILE *, int *); 82 78 … … 96 92 extern int vfs_link(int, const char *, vfs_file_kind_t); 97 93 extern int vfs_link_path(const char *, vfs_file_kind_t); 94 extern int vfs_mount_path(const char *, const char *, const char *, 95 const char *, unsigned int, unsigned int); 96 extern int vfs_mount(int, const char *, service_id_t, const char *, unsigned, 97 unsigned, int *); 98 98 extern int vfs_resize(int, aoff64_t); 99 99 extern int vfs_root(void); … … 106 106 extern int vfs_unlink(int, const char *, int); 107 107 extern int vfs_unlink_path(const char *); 108 extern int vfs_unmount(int); 109 extern int vfs_unmount_path(const char *); 108 110 109 int vfs_mount(int, const char *, service_id_t, const char *, unsigned, unsigned, int *);110 int vfs_unmount(int);111 111 112 112 #endif
Note:
See TracChangeset
for help on using the changeset viewer.