Changeset 368ee04 in mainline for uspace/srv/vfs/vfs.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/srv/vfs/vfs.c
r39f892a9 r368ee04 76 76 } 77 77 78 static void vfs_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg)79 {80 bool cont = true;81 82 /*83 * The connection was opened via the IPC_CONNECT_ME_TO call.84 * This call needs to be answered.85 */86 async_answer_0(iid, EOK);87 88 while (cont) {89 ipc_call_t call;90 ipc_callid_t callid = async_get_call(&call);91 92 if (!IPC_GET_IMETHOD(call))93 break;94 95 switch (IPC_GET_IMETHOD(call)) {96 case VFS_IN_REGISTER:97 vfs_register(callid, &call);98 cont = false;99 break;100 case VFS_IN_MOUNT:101 vfs_mount_srv(callid, &call);102 break;103 case VFS_IN_UNMOUNT:104 vfs_unmount_srv(callid, &call);105 break;106 case VFS_IN_OPEN:107 vfs_open(callid, &call);108 break;109 case VFS_IN_CLOSE:110 vfs_close(callid, &call);111 break;112 case VFS_IN_READ:113 vfs_read(callid, &call);114 break;115 case VFS_IN_WRITE:116 vfs_write(callid, &call);117 break;118 case VFS_IN_SEEK:119 vfs_seek(callid, &call);120 break;121 case VFS_IN_TRUNCATE:122 vfs_truncate(callid, &call);123 break;124 case VFS_IN_FSTAT:125 vfs_fstat(callid, &call);126 break;127 case VFS_IN_STAT:128 vfs_stat(callid, &call);129 break;130 case VFS_IN_MKDIR:131 vfs_mkdir(callid, &call);132 break;133 case VFS_IN_UNLINK:134 vfs_unlink(callid, &call);135 break;136 case VFS_IN_RENAME:137 vfs_rename(callid, &call);138 break;139 case VFS_IN_SYNC:140 vfs_sync(callid, &call);141 break;142 case VFS_IN_DUP:143 vfs_dup(callid, &call);144 break;145 case VFS_IN_WAIT_HANDLE:146 vfs_wait_handle(callid, &call);147 break;148 case VFS_IN_MTAB_GET:149 vfs_get_mtab(callid, &call);150 break;151 case VFS_IN_STATFS:152 vfs_statfs(callid, &call);153 break;154 default:155 async_answer_0(callid, ENOTSUP);156 break;157 }158 }159 160 /*161 * Open files for this client will be cleaned up when its last162 * connection fibril terminates.163 */164 }165 166 78 static void notification_handler(ipc_callid_t callid, ipc_call_t *call, void *arg) 167 79 { 168 80 if (IPC_GET_ARG1(*call) == VFS_PASS_HANDLE) 169 vfs_ pass_handle(81 vfs_op_pass_handle( 170 82 (task_id_t) MERGE_LOUP32(IPC_GET_ARG4(*call), 171 83 IPC_GET_ARG5(*call)), call->in_task_id,
Note:
See TracChangeset
for help on using the changeset viewer.