Changeset 12fc042 in mainline
- Timestamp:
- 2008-08-09T09:45:02Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 11c2ae5
- Parents:
- c544c5d
- Location:
- uspace
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/vfs/vfs.c
rc544c5d r12fc042 173 173 return (int) rc; 174 174 } 175 /* Ask VFS whether it likes fs_name. */ 176 rc = async_req_0_0(vfs_phone, IPC_M_PING); 177 if (rc != EOK) { 178 async_wait_for(req, NULL); 179 async_serialize_end(); 180 futex_up(&vfs_phone_futex); 181 free(mpa); 182 return (int) rc; 183 } 175 184 rc = ipc_data_write_start(vfs_phone, (void *)mpa, mpa_len); 176 185 if (rc != EOK) { -
uspace/srv/vfs/vfs_ops.c
rc544c5d r12fc042 72 72 dev_handle_t dev_handle; 73 73 vfs_node_t *mp_node = NULL; 74 ipc_callid_t callid; 75 ipc_call_t data; 74 76 int rc; 75 77 int phone; 78 size_t size; 76 79 77 80 /* … … 86 89 * carry mount options in the future. 87 90 */ 88 89 ipc_callid_t callid;90 size_t size;91 91 92 92 /* … … 116 116 117 117 /* 118 * Wait for IPC_M_PING so that we can return an error if we don't know 119 * fs_name. 120 */ 121 callid = async_get_call(&data); 122 if (IPC_GET_METHOD(data) != IPC_M_PING) { 123 ipc_answer_0(callid, ENOTSUP); 124 ipc_answer_0(rid, ENOTSUP); 125 return; 126 } 127 128 /* 118 129 * Check if we know a file system with the same name as is in fs_name. 119 130 * This will also give us its file system handle. … … 121 132 fs_handle_t fs_handle = fs_name_to_handle(fs_name, true); 122 133 if (!fs_handle) { 134 ipc_answer_0(callid, ENOENT); 123 135 ipc_answer_0(rid, ENOENT); 124 136 return; 125 137 } 138 139 /* Acknowledge that we know fs_name. */ 140 ipc_answer_0(callid, EOK); 126 141 127 142 /* Now, we want the client to send us the mount point. */
Note:
See TracChangeset
for help on using the changeset viewer.