Changeset 4198f9c3 in mainline
- Timestamp:
- 2009-06-28T13:43:15Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 852b801
- Parents:
- 6408be3
- Location:
- uspace
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/trace/trace.c
r6408be3 r4198f9c3 636 636 p = proto_new("vfs"); 637 637 o = oper_new("read", 1, arg_def, V_ERRNO, 1, resp_def); 638 proto_add_oper(p, VFS_ READ, o);638 proto_add_oper(p, VFS_IN_READ, o); 639 639 o = oper_new("write", 1, arg_def, V_ERRNO, 1, resp_def); 640 proto_add_oper(p, VFS_ WRITE, o);640 proto_add_oper(p, VFS_IN_WRITE, o); 641 641 o = oper_new("truncate", 5, arg_def, V_ERRNO, 0, resp_def); 642 proto_add_oper(p, VFS_ TRUNCATE, o);642 proto_add_oper(p, VFS_IN_TRUNCATE, o); 643 643 o = oper_new("mount", 2, arg_def, V_ERRNO, 0, resp_def); 644 proto_add_oper(p, VFS_ MOUNT, o);644 proto_add_oper(p, VFS_IN_MOUNT, o); 645 645 /* o = oper_new("unmount", 0, arg_def); 646 proto_add_oper(p, VFS_ UNMOUNT, o);*/646 proto_add_oper(p, VFS_IN_UNMOUNT, o);*/ 647 647 o = oper_new("open", 2, arg_def, V_INT_ERRNO, 0, resp_def); 648 proto_add_oper(p, VFS_ OPEN, o);648 proto_add_oper(p, VFS_IN_OPEN, o); 649 649 o = oper_new("close", 1, arg_def, V_ERRNO, 0, resp_def); 650 proto_add_oper(p, VFS_ CLOSE, o);650 proto_add_oper(p, VFS_IN_CLOSE, o); 651 651 o = oper_new("seek", 3, arg_def, V_ERRNO, 0, resp_def); 652 proto_add_oper(p, VFS_ SEEK, o);652 proto_add_oper(p, VFS_IN_SEEK, o); 653 653 o = oper_new("mkdir", 1, arg_def, V_ERRNO, 0, resp_def); 654 proto_add_oper(p, VFS_ MKDIR, o);654 proto_add_oper(p, VFS_IN_MKDIR, o); 655 655 o = oper_new("unlink", 0, arg_def, V_ERRNO, 0, resp_def); 656 proto_add_oper(p, VFS_ UNLINK, o);656 proto_add_oper(p, VFS_IN_UNLINK, o); 657 657 o = oper_new("rename", 0, arg_def, V_ERRNO, 0, resp_def); 658 proto_add_oper(p, VFS_ RENAME, o);658 proto_add_oper(p, VFS_IN_RENAME, o); 659 659 660 660 proto_register(SERVICE_VFS, p); -
uspace/lib/libc/generic/vfs/vfs.c
r6408be3 r4198f9c3 138 138 vfs_connect(); 139 139 140 req = async_send_2(vfs_phone, VFS_ MOUNT, dev_handle, flags, NULL);140 req = async_send_2(vfs_phone, VFS_IN_MOUNT, dev_handle, flags, NULL); 141 141 rc = ipc_data_write_start(vfs_phone, (void *) mpa, mpa_size); 142 142 if (rc != EOK) { … … 199 199 vfs_connect(); 200 200 201 req = async_send_3(vfs_phone, VFS_ OPEN, lflag, oflag, 0, &answer);201 req = async_send_3(vfs_phone, VFS_IN_OPEN, lflag, oflag, 0, &answer); 202 202 rc = ipc_data_write_start(vfs_phone, pa, pa_size); 203 203 if (rc != EOK) { … … 231 231 232 232 ipc_call_t answer; 233 aid_t req = async_send_4(vfs_phone, VFS_ OPEN_NODE, node->fs_handle,233 aid_t req = async_send_4(vfs_phone, VFS_IN_OPEN_NODE, node->fs_handle, 234 234 node->dev_handle, node->index, oflag, &answer); 235 235 … … 253 253 vfs_connect(); 254 254 255 rc = async_req_1_0(vfs_phone, VFS_ CLOSE, fildes);255 rc = async_req_1_0(vfs_phone, VFS_IN_CLOSE, fildes); 256 256 257 257 async_serialize_end(); … … 271 271 vfs_connect(); 272 272 273 req = async_send_1(vfs_phone, VFS_ READ, fildes, &answer);273 req = async_send_1(vfs_phone, VFS_IN_READ, fildes, &answer); 274 274 rc = ipc_data_read_start(vfs_phone, (void *)buf, nbyte); 275 275 if (rc != EOK) { … … 298 298 vfs_connect(); 299 299 300 req = async_send_1(vfs_phone, VFS_ WRITE, fildes, &answer);300 req = async_send_1(vfs_phone, VFS_IN_WRITE, fildes, &answer); 301 301 rc = ipc_data_write_start(vfs_phone, (void *)buf, nbyte); 302 302 if (rc != EOK) { … … 322 322 323 323 ipcarg_t device; 324 ipcarg_t rc = async_req_1_1(vfs_phone, VFS_ DEVICE, fildes, &device);324 ipcarg_t rc = async_req_1_1(vfs_phone, VFS_IN_DEVICE, fildes, &device); 325 325 326 326 async_serialize_end(); … … 342 342 ipcarg_t dev_handle; 343 343 ipcarg_t index; 344 ipcarg_t rc = async_req_1_3(vfs_phone, VFS_ NODE, fildes, &fs_handle,344 ipcarg_t rc = async_req_1_3(vfs_phone, VFS_IN_NODE, fildes, &fs_handle, 345 345 &dev_handle, &index); 346 346 … … 363 363 vfs_connect(); 364 364 365 ipcarg_t rc = async_req_1_0(vfs_phone, VFS_ SYNC, fildes);365 ipcarg_t rc = async_req_1_0(vfs_phone, VFS_IN_SYNC, fildes); 366 366 367 367 async_serialize_end(); … … 380 380 381 381 ipcarg_t newoffs; 382 rc = async_req_3_1(vfs_phone, VFS_ SEEK, fildes, offset, whence,382 rc = async_req_3_1(vfs_phone, VFS_IN_SEEK, fildes, offset, whence, 383 383 &newoffs); 384 384 … … 400 400 vfs_connect(); 401 401 402 rc = async_req_2_0(vfs_phone, VFS_ TRUNCATE, fildes, length);402 rc = async_req_2_0(vfs_phone, VFS_IN_TRUNCATE, fildes, length); 403 403 async_serialize_end(); 404 404 futex_up(&vfs_phone_futex); … … 453 453 vfs_connect(); 454 454 455 req = async_send_1(vfs_phone, VFS_ MKDIR, mode, NULL);455 req = async_send_1(vfs_phone, VFS_IN_MKDIR, mode, NULL); 456 456 rc = ipc_data_write_start(vfs_phone, pa, pa_size); 457 457 if (rc != EOK) { … … 483 483 vfs_connect(); 484 484 485 req = async_send_0(vfs_phone, VFS_ UNLINK, NULL);485 req = async_send_0(vfs_phone, VFS_IN_UNLINK, NULL); 486 486 rc = ipc_data_write_start(vfs_phone, pa, pa_size); 487 487 if (rc != EOK) { … … 530 530 vfs_connect(); 531 531 532 req = async_send_0(vfs_phone, VFS_ RENAME, NULL);532 req = async_send_0(vfs_phone, VFS_IN_RENAME, NULL); 533 533 rc = ipc_data_write_start(vfs_phone, olda, olda_size); 534 534 if (rc != EOK) { -
uspace/lib/libc/include/ipc/console.h
r6408be3 r4198f9c3 40 40 41 41 typedef enum { 42 CONSOLE_GET_SIZE = VFS_ LAST_SRV,42 CONSOLE_GET_SIZE = VFS_OUT_LAST, 43 43 CONSOLE_GET_EVENT, 44 44 CONSOLE_GOTO, -
uspace/lib/libc/include/ipc/vfs.h
r6408be3 r4198f9c3 58 58 59 59 typedef enum { 60 VFS_OPEN_NODE = IPC_FIRST_USER_METHOD, 61 VFS_READ, 62 VFS_WRITE, 63 VFS_TRUNCATE, 64 VFS_MOUNT, 65 VFS_UNMOUNT, 66 VFS_DEVICE, 67 VFS_SYNC, 68 VFS_CLOSE, 69 VFS_LAST_CMN /* keep this the last member of this enum */ 70 } vfs_request_cmn_t; 60 VFS_IN_OPEN = IPC_FIRST_USER_METHOD, 61 VFS_IN_OPEN_NODE, 62 VFS_IN_READ, 63 VFS_IN_WRITE, 64 VFS_IN_SEEK, 65 VFS_IN_TRUNCATE, 66 VFS_IN_CLOSE, 67 VFS_IN_MOUNT, 68 VFS_IN_UNMOUNT, 69 VFS_IN_DEVICE, 70 VFS_IN_SYNC, 71 VFS_IN_REGISTER, 72 VFS_IN_MKDIR, 73 VFS_IN_UNLINK, 74 VFS_IN_RENAME, 75 VFS_IN_NODE 76 } vfs_in_request_t; 71 77 72 78 typedef enum { 73 VFS_LOOKUP = VFS_LAST_CMN, 74 VFS_MOUNTED, 75 VFS_DESTROY, 76 VFS_LAST_CLNT /* keep this the last member of this enum */ 77 } vfs_request_clnt_t; 78 79 typedef enum { 80 VFS_REGISTER = VFS_LAST_CMN, 81 VFS_OPEN, 82 VFS_SEEK, 83 VFS_MKDIR, 84 VFS_UNLINK, 85 VFS_RENAME, 86 VFS_NODE, 87 VFS_LAST_SRV /* keep this the last member of this enum */ 88 } vfs_request_srv_t; 79 VFS_OUT_OPEN_NODE = IPC_FIRST_USER_METHOD, 80 VFS_OUT_READ, 81 VFS_OUT_WRITE, 82 VFS_OUT_TRUNCATE, 83 VFS_OUT_CLOSE, 84 VFS_OUT_MOUNT, 85 VFS_OUT_MOUNTED, 86 VFS_OUT_UNMOUNT, 87 VFS_OUT_DEVICE, 88 VFS_OUT_SYNC, 89 VFS_OUT_LOOKUP, 90 VFS_OUT_DESTROY, 91 VFS_OUT_LAST 92 } vfs_out_request_t; 89 93 90 94 /* -
uspace/lib/libfs/libfs.c
r6408be3 r4198f9c3 70 70 */ 71 71 ipc_call_t answer; 72 aid_t req = async_send_0(vfs_phone, VFS_ REGISTER, &answer);72 aid_t req = async_send_0(vfs_phone, VFS_IN_REGISTER, &answer); 73 73 74 74 /* … … 105 105 106 106 /* 107 * Pick up the answer for the request to the VFS_ REQUEST call.107 * Pick up the answer for the request to the VFS_IN_REQUEST call. 108 108 */ 109 109 async_wait_for(req, NULL); … … 187 187 188 188 ipc_call_t answer; 189 aid_t msg = async_send_1(mountee_phone, VFS_ MOUNTED, mr_dev_handle,189 aid_t msg = async_send_1(mountee_phone, VFS_OUT_MOUNTED, mr_dev_handle, 190 190 &answer); 191 191 ipc_forward_fast(callid, mountee_phone, 0, 0, 0, IPC_FF_ROUTE_FROM_ME); … … 214 214 * @param fs_handle File system handle of the file system where to perform 215 215 * the lookup. 216 * @param rid Request ID of the VFS_ LOOKUP request.217 * @param request VFS_ LOOKUP request data itself.216 * @param rid Request ID of the VFS_OUT_LOOKUP request. 217 * @param request VFS_OUT_LOOKUP request data itself. 218 218 * 219 219 */ … … 238 238 239 239 if (cur->mp_data.mp_active) { 240 ipc_forward_slow(rid, cur->mp_data.phone, VFS_ LOOKUP,240 ipc_forward_slow(rid, cur->mp_data.phone, VFS_OUT_LOOKUP, 241 241 next, last, cur->mp_data.dev_handle, lflag, index, 242 242 IPC_FF_ROUTE_FROM_ME); … … 273 273 next--; 274 274 275 ipc_forward_slow(rid, tmp->mp_data.phone, VFS_LOOKUP,276 next, last, tmp->mp_data.dev_handle, lflag, index,277 IPC_FF_ROUTE_FROM_ME);275 ipc_forward_slow(rid, tmp->mp_data.phone, 276 VFS_OUT_LOOKUP, next, last, tmp->mp_data.dev_handle, 277 lflag, index, IPC_FF_ROUTE_FROM_ME); 278 278 ops->node_put(cur); 279 279 ops->node_put(tmp); … … 433 433 * @param ops libfs operations structure with function pointers to 434 434 * file system implementation 435 * @param rid Request ID of the VFS_O PEN_NODE request.436 * @param request VFS_O PEN_NODE request data itself.435 * @param rid Request ID of the VFS_OUT_OPEN_NODE request. 436 * @param request VFS_OUT_OPEN_NODE request data itself. 437 437 * 438 438 */ -
uspace/srv/console/console.c
r6408be3 r4198f9c3 552 552 gcons_notify_disconnect(cons->index); 553 553 return; 554 case VFS_ READ:554 case VFS_OUT_READ: 555 555 async_serialize_end(); 556 556 cons_read(cons, callid, &call); 557 557 async_serialize_start(); 558 558 continue; 559 case VFS_ WRITE:559 case VFS_OUT_WRITE: 560 560 async_serialize_end(); 561 561 cons_write(cons, callid, &call); 562 562 async_serialize_start(); 563 563 continue; 564 case VFS_ SYNC:564 case VFS_OUT_SYNC: 565 565 fb_pending_flush(); 566 566 if (cons == active_console) { -
uspace/srv/fs/devfs/devfs.c
r6408be3 r4198f9c3 68 68 case IPC_M_PHONE_HUNGUP: 69 69 return; 70 case VFS_ MOUNTED:70 case VFS_OUT_MOUNTED: 71 71 devfs_mounted(callid, &call); 72 72 break; 73 case VFS_ MOUNT:73 case VFS_OUT_MOUNT: 74 74 devfs_mount(callid, &call); 75 75 break; 76 case VFS_ LOOKUP:76 case VFS_OUT_LOOKUP: 77 77 devfs_lookup(callid, &call); 78 78 break; 79 case VFS_O PEN_NODE:79 case VFS_OUT_OPEN_NODE: 80 80 devfs_open_node(callid, &call); 81 81 break; 82 case VFS_ DEVICE:82 case VFS_OUT_DEVICE: 83 83 devfs_device(callid, &call); 84 84 break; 85 case VFS_ READ:85 case VFS_OUT_READ: 86 86 devfs_read(callid, &call); 87 87 break; 88 case VFS_ WRITE:88 case VFS_OUT_WRITE: 89 89 devfs_write(callid, &call); 90 90 break; 91 case VFS_ TRUNCATE:91 case VFS_OUT_TRUNCATE: 92 92 devfs_truncate(callid, &call); 93 93 break; 94 case VFS_ CLOSE:94 case VFS_OUT_CLOSE: 95 95 devfs_close(callid, &call); 96 96 break; 97 case VFS_ SYNC:97 case VFS_OUT_SYNC: 98 98 devfs_sync(callid, &call); 99 99 break; 100 case VFS_ DESTROY:100 case VFS_OUT_DESTROY: 101 101 devfs_destroy(callid, &call); 102 102 break; -
uspace/srv/fs/fat/fat.c
r6408be3 r4198f9c3 92 92 case IPC_M_PHONE_HUNGUP: 93 93 return; 94 case VFS_ MOUNTED:94 case VFS_OUT_MOUNTED: 95 95 fat_mounted(callid, &call); 96 96 break; 97 case VFS_ MOUNT:97 case VFS_OUT_MOUNT: 98 98 fat_mount(callid, &call); 99 99 break; 100 case VFS_ LOOKUP:100 case VFS_OUT_LOOKUP: 101 101 fat_lookup(callid, &call); 102 102 break; 103 case VFS_ READ:103 case VFS_OUT_READ: 104 104 fat_read(callid, &call); 105 105 break; 106 case VFS_ WRITE:106 case VFS_OUT_WRITE: 107 107 fat_write(callid, &call); 108 108 break; 109 case VFS_ TRUNCATE:109 case VFS_OUT_TRUNCATE: 110 110 fat_truncate(callid, &call); 111 111 break; 112 case VFS_ CLOSE:112 case VFS_OUT_CLOSE: 113 113 fat_close(callid, &call); 114 114 break; 115 case VFS_ DESTROY:115 case VFS_OUT_DESTROY: 116 116 fat_destroy(callid, &call); 117 117 break; 118 case VFS_O PEN_NODE:118 case VFS_OUT_OPEN_NODE: 119 119 fat_open_node(callid, &call); 120 120 break; 121 case VFS_ DEVICE:121 case VFS_OUT_DEVICE: 122 122 fat_device(callid, &call); 123 123 break; 124 case VFS_ SYNC:124 case VFS_OUT_SYNC: 125 125 fat_sync(callid, &call); 126 126 break; -
uspace/srv/fs/tmpfs/tmpfs.c
r6408be3 r4198f9c3 99 99 case IPC_M_PHONE_HUNGUP: 100 100 return; 101 case VFS_ MOUNTED:101 case VFS_OUT_MOUNTED: 102 102 tmpfs_mounted(callid, &call); 103 103 break; 104 case VFS_ MOUNT:104 case VFS_OUT_MOUNT: 105 105 tmpfs_mount(callid, &call); 106 106 break; 107 case VFS_ LOOKUP:107 case VFS_OUT_LOOKUP: 108 108 tmpfs_lookup(callid, &call); 109 109 break; 110 case VFS_ READ:110 case VFS_OUT_READ: 111 111 tmpfs_read(callid, &call); 112 112 break; 113 case VFS_ WRITE:113 case VFS_OUT_WRITE: 114 114 tmpfs_write(callid, &call); 115 115 break; 116 case VFS_ TRUNCATE:116 case VFS_OUT_TRUNCATE: 117 117 tmpfs_truncate(callid, &call); 118 118 break; 119 case VFS_ CLOSE:119 case VFS_OUT_CLOSE: 120 120 tmpfs_close(callid, &call); 121 121 break; 122 case VFS_ DESTROY:122 case VFS_OUT_DESTROY: 123 123 tmpfs_destroy(callid, &call); 124 124 break; 125 case VFS_O PEN_NODE:125 case VFS_OUT_OPEN_NODE: 126 126 tmpfs_open_node(callid, &call); 127 127 break; 128 case VFS_ DEVICE:128 case VFS_OUT_DEVICE: 129 129 tmpfs_device(callid, &call); 130 130 break; 131 case VFS_ SYNC:131 case VFS_OUT_SYNC: 132 132 tmpfs_sync(callid, &call); 133 133 break; … … 153 153 return -1; 154 154 } 155 155 156 156 int rc = fs_register(vfs_phone, &tmpfs_reg, &tmpfs_vfs_info, 157 157 tmpfs_connection); -
uspace/srv/vfs/vfs.c
r6408be3 r4198f9c3 80 80 keep_on_going = false; 81 81 break; 82 case VFS_ REGISTER:82 case VFS_IN_REGISTER: 83 83 vfs_register(callid, &call); 84 84 keep_on_going = false; 85 85 break; 86 case VFS_ MOUNT:86 case VFS_IN_MOUNT: 87 87 vfs_mount(callid, &call); 88 88 break; 89 case VFS_ OPEN:89 case VFS_IN_OPEN: 90 90 vfs_open(callid, &call); 91 91 break; 92 case VFS_ OPEN_NODE:92 case VFS_IN_OPEN_NODE: 93 93 vfs_open_node(callid, &call); 94 94 break; 95 case VFS_ CLOSE:95 case VFS_IN_CLOSE: 96 96 vfs_close(callid, &call); 97 97 break; 98 case VFS_ READ:98 case VFS_IN_READ: 99 99 vfs_read(callid, &call); 100 100 break; 101 case VFS_ WRITE:101 case VFS_IN_WRITE: 102 102 vfs_write(callid, &call); 103 103 break; 104 case VFS_ SEEK:104 case VFS_IN_SEEK: 105 105 vfs_seek(callid, &call); 106 106 break; 107 case VFS_ TRUNCATE:107 case VFS_IN_TRUNCATE: 108 108 vfs_truncate(callid, &call); 109 109 break; 110 case VFS_ MKDIR:110 case VFS_IN_MKDIR: 111 111 vfs_mkdir(callid, &call); 112 112 break; 113 case VFS_ UNLINK:113 case VFS_IN_UNLINK: 114 114 vfs_unlink(callid, &call); 115 115 break; 116 case VFS_ RENAME:116 case VFS_IN_RENAME: 117 117 vfs_rename(callid, &call); 118 118 break; 119 case VFS_ DEVICE:119 case VFS_IN_DEVICE: 120 120 vfs_device(callid, &call); 121 121 break; 122 case VFS_ SYNC:122 case VFS_IN_SYNC: 123 123 vfs_sync(callid, &call); 124 124 break; 125 case VFS_ NODE:125 case VFS_IN_NODE: 126 126 vfs_node(callid, &call); 127 127 break; -
uspace/srv/vfs/vfs_lookup.c
r6408be3 r4198f9c3 160 160 ipc_call_t answer; 161 161 int phone = vfs_grab_phone(root->fs_handle); 162 aid_t req = async_send_5(phone, VFS_ LOOKUP, (ipcarg_t) first,162 aid_t req = async_send_5(phone, VFS_OUT_LOOKUP, (ipcarg_t) first, 163 163 (ipcarg_t) (first + len - 1) % PLB_SIZE, 164 164 (ipcarg_t) root->dev_handle, (ipcarg_t) lflag, (ipcarg_t) index, … … 205 205 206 206 ipc_call_t answer; 207 aid_t req = async_send_2(phone, VFS_O PEN_NODE,207 aid_t req = async_send_2(phone, VFS_OUT_OPEN_NODE, 208 208 (ipcarg_t) result->triplet.dev_handle, 209 209 (ipcarg_t) result->triplet.index, &answer); -
uspace/srv/vfs/vfs_node.c
r6408be3 r4198f9c3 130 130 int phone = vfs_grab_phone(node->fs_handle); 131 131 ipcarg_t rc; 132 rc = async_req_2_0(phone, VFS_ DESTROY,132 rc = async_req_2_0(phone, VFS_OUT_DESTROY, 133 133 (ipcarg_t)node->dev_handle, (ipcarg_t)node->index); 134 134 assert(rc == EOK); -
uspace/srv/vfs/vfs_ops.c
r6408be3 r4198f9c3 109 109 /* 110 110 * Now we hold a reference to mp_node. 111 * It will be dropped upon the corresponding VFS_ UNMOUNT.111 * It will be dropped upon the corresponding VFS_IN_UNMOUNT. 112 112 * This prevents the mount point from being deleted. 113 113 */ … … 122 122 /* Tell the mountee that it is being mounted. */ 123 123 phone = vfs_grab_phone(fs_handle); 124 msg = async_send_1(phone, VFS_ MOUNTED,124 msg = async_send_1(phone, VFS_OUT_MOUNTED, 125 125 (ipcarg_t) dev_handle, &answer); 126 126 /* send the mount options */ … … 184 184 185 185 phone = vfs_grab_phone(mp_res.triplet.fs_handle); 186 msg = async_send_4(phone, VFS_ MOUNT,186 msg = async_send_4(phone, VFS_OUT_MOUNT, 187 187 (ipcarg_t) mp_res.triplet.dev_handle, 188 188 (ipcarg_t) mp_res.triplet.index, … … 438 438 /* 439 439 * The POSIX interface is open(path, oflag, mode). 440 * We can receive oflags and mode along with the VFS_ OPEN call; the path441 * will need to arrive in another call.440 * We can receive oflags and mode along with the VFS_IN_OPEN call; 441 * the path will need to arrive in another call. 442 442 * 443 443 * We also receive one private, non-POSIX set of flags called lflag … … 556 556 * It is necessary so that the file will not disappear when 557 557 * vfs_node_put() is called. The reference will be dropped by the 558 * respective VFS_ CLOSE.558 * respective VFS_IN_CLOSE. 559 559 */ 560 560 vfs_node_addref(node); … … 633 633 * It is necessary so that the file will not disappear when 634 634 * vfs_node_put() is called. The reference will be dropped by the 635 * respective VFS_ CLOSE.635 * respective VFS_IN_CLOSE. 636 636 */ 637 637 vfs_node_addref(node); … … 675 675 int fs_phone = vfs_grab_phone(file->node->fs_handle); 676 676 677 /* Make a VFS_ DEVICE request at the destination FS server. */677 /* Make a VFS_OUT_DEVICE request at the destination FS server. */ 678 678 aid_t msg; 679 679 ipc_call_t answer; 680 msg = async_send_2(fs_phone, IPC_GET_METHOD(*request),681 file->node-> dev_handle, file->node->index, &answer);680 msg = async_send_2(fs_phone, VFS_OUT_DEVICE, file->node->dev_handle, 681 file->node->index, &answer); 682 682 683 683 /* Wait for reply from the FS server. */ … … 709 709 int fs_phone = vfs_grab_phone(file->node->fs_handle); 710 710 711 /* Make a VFS_ SYMC request at the destination FS server. */711 /* Make a VFS_OUT_SYMC request at the destination FS server. */ 712 712 aid_t msg; 713 713 ipc_call_t answer; 714 msg = async_send_2(fs_phone, IPC_GET_METHOD(*request),715 file->node-> dev_handle, file->node->index, &answer);714 msg = async_send_2(fs_phone, VFS_OUT_SYNC, file->node->dev_handle, 715 file->node->index, &answer); 716 716 717 717 /* Wait for reply from the FS server. */ … … 743 743 int fs_phone = vfs_grab_phone(file->node->fs_handle); 744 744 745 /* Make a VFS_ CLOSE request at the destination FS server. */745 /* Make a VFS_OUT_CLOSE request at the destination FS server. */ 746 746 aid_t msg; 747 747 ipc_call_t answer; 748 msg = async_send_2(fs_phone, IPC_GET_METHOD(*request),749 file->node-> dev_handle, file->node->index, &answer);748 msg = async_send_2(fs_phone, VFS_OUT_CLOSE, file->node->dev_handle, 749 file->node->index, &answer); 750 750 751 751 /* Wait for reply from the FS server. */ … … 833 833 if (!read && file->append) 834 834 file->pos = file->node->size; 835 msg = async_send_3(fs_phone, IPC_GET_METHOD(*request),835 msg = async_send_3(fs_phone, read ? VFS_OUT_READ : VFS_OUT_WRITE, 836 836 file->node->dev_handle, file->node->index, file->pos, &answer); 837 837 … … 947 947 948 948 fs_phone = vfs_grab_phone(fs_handle); 949 rc = async_req_3_0(fs_phone, VFS_ TRUNCATE, (ipcarg_t)dev_handle,949 rc = async_req_3_0(fs_phone, VFS_OUT_TRUNCATE, (ipcarg_t)dev_handle, 950 950 (ipcarg_t)index, (ipcarg_t)size); 951 951 vfs_release_phone(fs_phone); … … 1051 1051 * The name has already been unlinked by vfs_lookup_internal(). 1052 1052 * We have to get and put the VFS node to ensure that it is 1053 * VFS_ DESTROY'ed after the last reference to it is dropped.1053 * VFS_OUT_DESTROY'ed after the last reference to it is dropped. 1054 1054 */ 1055 1055 vfs_node_t *node = vfs_node_get(&lr);
Note:
See TracChangeset
for help on using the changeset viewer.