Changeset 7dab6b8 in mainline


Ignore:
Timestamp:
2007-12-23T22:37:48Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1356a04c
Parents:
a92da0a
Message:

Fix two bugs in TMPFS-side VFS_READ.

File:
1 edited

Legend:

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

    ra92da0a r7dab6b8  
    301301        ipc_callid_t callid;
    302302        size_t size;
    303         if (!ipc_data_read_receive(&callid, size)) {
     303        if (!ipc_data_read_receive(&callid, &size)) {
    304304                ipc_answer_0(callid, EINVAL);   
    305305                ipc_answer_0(rid, EINVAL);
     
    309309        size_t bytes = max(0, min(dentry->size - pos, size));
    310310        (void) ipc_data_read_deliver(callid, dentry->data + pos, bytes);
     311
     312        /*
     313         * Answer the VFS_READ call.
     314         */
     315        ipc_answer_1(rid, EOK, bytes);
    311316}
    312317
Note: See TracChangeset for help on using the changeset viewer.