Changeset 4f5dc18 in mainline for uspace/lib/libfs/libfs.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/lib/libfs/libfs.c

    rbbddafb r4f5dc18  
    9191         * Send our VFS info structure to VFS.
    9292         */
    93         int rc = ipc_data_write_start(vfs_phone, info, sizeof(*info));
     93        int rc = async_data_write_start(vfs_phone, info, sizeof(*info));
    9494        if (rc != EOK) {
    9595                async_wait_for(req, NULL);
     
    114114         * Request sharing the Path Lookup Buffer with VFS.
    115115         */
    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);
    117117        if (rc) {
    118118                async_wait_for(req, NULL);
     
    169169        ipc_answer_0(callid, EOK);      /* acknowledge the mountee_phone */
    170170       
    171         res = ipc_data_write_receive(&callid, NULL);
     171        res = async_data_write_receive(&callid, NULL);
    172172        if (!res) {
    173173                ipc_hangup(mountee_phone);
     
    486486        ipc_callid_t callid;
    487487        size_t size;
    488         if (!ipc_data_read_receive(&callid, &size) ||
     488        if (!async_data_read_receive(&callid, &size) ||
    489489            size != sizeof(struct stat)) {
    490490                ipc_answer_0(callid, EINVAL);
     
    503503        stat.size = ops->size_get(fn);
    504504
    505         ipc_data_read_finalize(callid, &stat, sizeof(struct stat));
     505        async_data_read_finalize(callid, &stat, sizeof(struct stat));
    506506        ipc_answer_0(rid, EOK);
    507507}
     
    531531        }
    532532       
    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));
    535535       
    536536        (void) ops->node_put(fn);
Note: See TracChangeset for help on using the changeset viewer.