Changeset 67e881c in mainline for uspace/srv/vfs/vfs_ipc.c
- Timestamp:
- 2017-03-30T20:59:36Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a56cef9
- Parents:
- 79ea5af
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_ipc.c
r79ea5af r67e881c 160 160 } 161 161 162 static void vfs_in_resize(ipc_callid_t rid, ipc_call_t *request) 163 { 164 int fd = IPC_GET_ARG1(*request); 165 int64_t size = MERGE_LOUP32(IPC_GET_ARG2(*request), IPC_GET_ARG3(*request)); 166 int rc = vfs_op_resize(fd, size); 167 async_answer_0(rid, rc); 168 } 169 162 170 static void vfs_in_stat(ipc_callid_t rid, ipc_call_t *request) 163 171 { … … 179 187 int fd = IPC_GET_ARG1(*request); 180 188 int rc = vfs_op_sync(fd); 181 async_answer_0(rid, rc);182 }183 184 static void vfs_in_truncate(ipc_callid_t rid, ipc_call_t *request)185 {186 int fd = IPC_GET_ARG1(*request);187 int64_t size = MERGE_LOUP32(IPC_GET_ARG2(*request), IPC_GET_ARG3(*request));188 int rc = vfs_op_truncate(fd, size);189 189 async_answer_0(rid, rc); 190 190 } … … 287 287 vfs_in_rename(callid, &call); 288 288 break; 289 case VFS_IN_RESIZE: 290 vfs_in_resize(callid, &call); 291 break; 289 292 case VFS_IN_STAT: 290 293 vfs_in_stat(callid, &call); … … 295 298 case VFS_IN_SYNC: 296 299 vfs_in_sync(callid, &call); 297 break;298 case VFS_IN_TRUNCATE:299 vfs_in_truncate(callid, &call);300 300 break; 301 301 case VFS_IN_UNLINK:
Note:
See TracChangeset
for help on using the changeset viewer.