Changeset 4f5dc18 in mainline for uspace/srv/fs/fat/fat_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/fat/fat_ops.c

    rbbddafb r4f5dc18  
    897897        ipc_callid_t callid;
    898898        size_t size;
    899         if (!ipc_data_write_receive(&callid, &size)) {
     899        if (!async_data_write_receive(&callid, &size)) {
    900900                ipc_answer_0(callid, EINVAL);
    901901                ipc_answer_0(rid, EINVAL);
     
    908908                return;
    909909        }
    910         ipcarg_t retval = ipc_data_write_finalize(callid, opts, size);
     910        ipcarg_t retval = async_data_write_finalize(callid, opts, size);
    911911        if (retval != EOK) {
    912912                ipc_answer_0(rid, retval);
     
    10471047        ipc_callid_t callid;
    10481048        size_t len;
    1049         if (!ipc_data_read_receive(&callid, &len)) {
     1049        if (!async_data_read_receive(&callid, &len)) {
    10501050                fat_node_put(fn);
    10511051                ipc_answer_0(callid, EINVAL);
     
    10661066                        /* reading beyond the EOF */
    10671067                        bytes = 0;
    1068                         (void) ipc_data_read_finalize(callid, NULL, 0);
     1068                        (void) async_data_read_finalize(callid, NULL, 0);
    10691069                } else {
    10701070                        bytes = min(len, bps - pos % bps);
     
    10731073                            BLOCK_FLAGS_NONE);
    10741074                        assert(rc == EOK);
    1075                         (void) ipc_data_read_finalize(callid, b->data + pos % bps,
     1075                        (void) async_data_read_finalize(callid, b->data + pos % bps,
    10761076                            bytes);
    10771077                        rc = block_put(b);
     
    11311131                return;
    11321132hit:
    1133                 (void) ipc_data_read_finalize(callid, name, str_size(name) + 1);
     1133                (void) async_data_read_finalize(callid, name, str_size(name) + 1);
    11341134                bytes = (pos - spos) + 1;
    11351135        }
     
    11691169        ipc_callid_t callid;
    11701170        size_t len;
    1171         if (!ipc_data_write_receive(&callid, &len)) {
     1171        if (!async_data_write_receive(&callid, &len)) {
    11721172                fat_node_put(fn);
    11731173                ipc_answer_0(callid, EINVAL);
     
    12041204                rc = fat_block_get(&b, bs, nodep, pos / bps, flags);
    12051205                assert(rc == EOK);
    1206                 (void) ipc_data_write_finalize(callid, b->data + pos % bps,
     1206                (void) async_data_write_finalize(callid, b->data + pos % bps,
    12071207                    bytes);
    12081208                b->dirty = true;                /* need to sync block */
     
    12411241                    flags);
    12421242                assert(rc == EOK);
    1243                 (void) ipc_data_write_finalize(callid, b->data + pos % bps,
     1243                (void) async_data_write_finalize(callid, b->data + pos % bps,
    12441244                    bytes);
    12451245                b->dirty = true;                /* need to sync block */
Note: See TracChangeset for help on using the changeset viewer.