Changeset c08c355 in mainline
- Timestamp:
- 2009-04-18T13:37:59Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c259b9b
- Parents:
- 58d7280
- Location:
- uspace
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/vfs/vfs.c
r58d7280 rc08c355 194 194 return (int) rc; 195 195 } 196 197 /* Ask VFS whether it likes fs_name. */ 198 rc = async_req_0_0(vfs_phone, IPC_M_PING); 199 if (rc != EOK) { 200 async_wait_for(req, NULL); 201 async_serialize_end(); 202 futex_up(&vfs_phone_futex); 203 free(mpa); 204 return (int) rc; 205 } 196 206 197 207 async_wait_for(req, &rc); -
uspace/srv/vfs/vfs_ops.c
r58d7280 rc08c355 321 321 } 322 322 fs_name[size] = '\0'; 323 323 324 /* 325 * Wait for IPC_M_PING so that we can return an error if we don't know 326 * fs_name. 327 */ 328 ipc_call_t data; 329 callid = async_get_call(&data); 330 if (IPC_GET_METHOD(data) != IPC_M_PING) { 331 ipc_answer_0(callid, ENOTSUP); 332 ipc_answer_0(rid, ENOTSUP); 333 free(mp); 334 free(fs_name); 335 return; 336 } 337 324 338 /* 325 339 * Check if we know a file system with the same name as is in fs_name. … … 329 343 if (!fs_handle) { 330 344 if (flags & IPC_FLAG_BLOCKING) { 345 pending_req_t *pr; 346 331 347 /* Blocking mount, add to pending list */ 332 p ending_req_t *pr = (pending_req_t *) malloc(sizeof(pending_req_t));348 pr = (pending_req_t *) malloc(sizeof(pending_req_t)); 333 349 if (!pr) { 334 350 ipc_answer_0(callid, ENOMEM);
Note:
See TracChangeset
for help on using the changeset viewer.