Changeset 4f5dc18 in mainline for uspace/lib/libfs/libfs.c
- Timestamp:
- 2009-11-03T21:36:54Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1647323
- Parents:
- bbddafb (diff), b1c21c2 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libfs/libfs.c
rbbddafb r4f5dc18 91 91 * Send our VFS info structure to VFS. 92 92 */ 93 int rc = ipc_data_write_start(vfs_phone, info, sizeof(*info));93 int rc = async_data_write_start(vfs_phone, info, sizeof(*info)); 94 94 if (rc != EOK) { 95 95 async_wait_for(req, NULL); … … 114 114 * Request sharing the Path Lookup Buffer with VFS. 115 115 */ 116 rc = ipc_share_in_start_0_0(vfs_phone, reg->plb_ro, PLB_SIZE);116 rc = async_share_in_start_0_0(vfs_phone, reg->plb_ro, PLB_SIZE); 117 117 if (rc) { 118 118 async_wait_for(req, NULL); … … 169 169 ipc_answer_0(callid, EOK); /* acknowledge the mountee_phone */ 170 170 171 res = ipc_data_write_receive(&callid, NULL);171 res = async_data_write_receive(&callid, NULL); 172 172 if (!res) { 173 173 ipc_hangup(mountee_phone); … … 486 486 ipc_callid_t callid; 487 487 size_t size; 488 if (! ipc_data_read_receive(&callid, &size) ||488 if (!async_data_read_receive(&callid, &size) || 489 489 size != sizeof(struct stat)) { 490 490 ipc_answer_0(callid, EINVAL); … … 503 503 stat.size = ops->size_get(fn); 504 504 505 ipc_data_read_finalize(callid, &stat, sizeof(struct stat));505 async_data_read_finalize(callid, &stat, sizeof(struct stat)); 506 506 ipc_answer_0(rid, EOK); 507 507 } … … 531 531 } 532 532 533 ipc_answer_ 5(rid, EOK, fs_handle, dev_handle, index, ops->size_get(fn),534 ops->lnkcnt_get(fn));533 ipc_answer_3(rid, EOK, ops->size_get(fn), ops->lnkcnt_get(fn), 534 (ops->is_file(fn) ? L_FILE : 0) | (ops->is_directory(fn) ? L_DIRECTORY : 0)); 535 535 536 536 (void) ops->node_put(fn);
Note:
See TracChangeset
for help on using the changeset viewer.