Changeset 4198f9c3 in mainline for uspace/srv/vfs/vfs_ops.c
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.