Changeset 4f5dc18 in mainline for uspace/srv/fs/tmpfs/tmpfs_ops.c


Ignore:
Timestamp:
2009-11-03T21:36:54Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
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.
Message:

Merge with mainline.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/tmpfs/tmpfs_ops.c

    rbbddafb r4f5dc18  
    389389        ipc_callid_t callid;
    390390        size_t size;
    391         if (!ipc_data_write_receive(&callid, &size)) {
     391        if (!async_data_write_receive(&callid, &size)) {
    392392                ipc_answer_0(callid, EINVAL);
    393393                ipc_answer_0(rid, EINVAL);
     
    400400                return;
    401401        }
    402         ipcarg_t retval = ipc_data_write_finalize(callid, opts, size);
     402        ipcarg_t retval = async_data_write_finalize(callid, opts, size);
    403403        if (retval != EOK) {
    404404                ipc_answer_0(rid, retval);
     
    467467        ipc_callid_t callid;
    468468        size_t size;
    469         if (!ipc_data_read_receive(&callid, &size)) {
     469        if (!async_data_read_receive(&callid, &size)) {
    470470                ipc_answer_0(callid, EINVAL);   
    471471                ipc_answer_0(rid, EINVAL);
     
    476476        if (nodep->type == TMPFS_FILE) {
    477477                bytes = max(0, min(nodep->size - pos, size));
    478                 (void) ipc_data_read_finalize(callid, nodep->data + pos,
     478                (void) async_data_read_finalize(callid, nodep->data + pos,
    479479                    bytes);
    480480        } else {
     
    503503                dentryp = list_get_instance(lnk, tmpfs_dentry_t, link);
    504504
    505                 (void) ipc_data_read_finalize(callid, dentryp->name,
     505                (void) async_data_read_finalize(callid, dentryp->name,
    506506                    str_size(dentryp->name) + 1);
    507507                bytes = 1;
     
    541541        ipc_callid_t callid;
    542542        size_t size;
    543         if (!ipc_data_write_receive(&callid, &size)) {
     543        if (!async_data_write_receive(&callid, &size)) {
    544544                ipc_answer_0(callid, EINVAL);   
    545545                ipc_answer_0(rid, EINVAL);
     
    552552        if (pos + size <= nodep->size) {
    553553                /* The file size is not changing. */
    554                 (void) ipc_data_write_finalize(callid, nodep->data + pos, size);
     554                (void) async_data_write_finalize(callid, nodep->data + pos, size);
    555555                ipc_answer_2(rid, EOK, size, nodep->size);
    556556                return;
     
    574574        nodep->size += delta;
    575575        nodep->data = newdata;
    576         (void) ipc_data_write_finalize(callid, nodep->data + pos, size);
     576        (void) async_data_write_finalize(callid, nodep->data + pos, size);
    577577        ipc_answer_2(rid, EOK, size, nodep->size);
    578578}
Note: See TracChangeset for help on using the changeset viewer.