Changeset 00c2de63 in mainline for uspace/srv/vfs/vfs_ops.c
- Timestamp:
- 2011-07-29T14:50:22Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b6759f4
- Parents:
- 6c69d19 (diff), 7ae249d (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/srv/vfs/vfs_ops.c
r6c69d19 r00c2de63 76 76 vfs_node_t *mr_node; 77 77 fs_index_t rindex; 78 size_t rsize;78 aoff64_t rsize; 79 79 unsigned rlnkcnt; 80 80 async_exch_t *exch; … … 146 146 147 147 rindex = (fs_index_t) IPC_GET_ARG1(answer); 148 rsize = ( size_t) IPC_GET_ARG2(answer);149 rlnkcnt = (unsigned) IPC_GET_ARG 3(answer);148 rsize = (aoff64_t) MERGE_LOUP32(IPC_GET_ARG2(answer), IPC_GET_ARG3(answer)); 149 rlnkcnt = (unsigned) IPC_GET_ARG4(answer); 150 150 151 151 mr_res.triplet.fs_handle = fs_handle; … … 229 229 if (rc == EOK) { 230 230 rindex = (fs_index_t) IPC_GET_ARG1(answer); 231 rsize = (size_t) IPC_GET_ARG2(answer); 232 rlnkcnt = (unsigned) IPC_GET_ARG3(answer); 231 rsize = (aoff64_t) MERGE_LOUP32(IPC_GET_ARG2(answer), 232 IPC_GET_ARG3(answer)); 233 rlnkcnt = (unsigned) IPC_GET_ARG4(answer); 233 234 234 235 mr_res.triplet.fs_handle = fs_handle; … … 795 796 ipc_call_t answer; 796 797 if (read) { 797 rc = async_data_read_forward_ 3_1(fs_exch, VFS_OUT_READ,798 file->node->devmap_handle, file->node->index, file->pos,799 &answer);798 rc = async_data_read_forward_4_1(fs_exch, VFS_OUT_READ, 799 file->node->devmap_handle, file->node->index, 800 LOWER32(file->pos), UPPER32(file->pos), &answer); 800 801 } else { 801 802 if (file->append) 802 803 file->pos = file->node->size; 803 804 804 rc = async_data_write_forward_ 3_1(fs_exch, VFS_OUT_WRITE,805 file->node->devmap_handle, file->node->index, file->pos,806 &answer);805 rc = async_data_write_forward_4_1(fs_exch, VFS_OUT_WRITE, 806 file->node->devmap_handle, file->node->index, 807 LOWER32(file->pos), UPPER32(file->pos), &answer); 807 808 } 808 809 … … 821 822 /* Update the cached version of node's size. */ 822 823 if (rc == EOK) 823 file->node->size = IPC_GET_ARG2(answer); 824 file->node->size = MERGE_LOUP32(IPC_GET_ARG2(answer), 825 IPC_GET_ARG3(answer)); 824 826 fibril_rwlock_write_unlock(&file->node->contents_rwlock); 825 827 }
Note:
See TracChangeset
for help on using the changeset viewer.