Changeset 89c57b6 in mainline for uspace/srv/vfs/vfs_lookup.c


Ignore:
Timestamp:
2011-04-13T14:45:41Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
88634420
Parents:
cefb126 (diff), 17279ead (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 mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_lookup.c

    rcefb126 r89c57b6  
    3737
    3838#include "vfs.h"
    39 #include <ipc/ipc.h>
    4039#include <macros.h>
    4140#include <async.h>
     
    161160        ipc_call_t answer;
    162161        int phone = vfs_grab_phone(root->fs_handle);
    163         aid_t req = async_send_5(phone, VFS_OUT_LOOKUP, (ipcarg_t) first,
    164             (ipcarg_t) (first + len - 1) % PLB_SIZE,
    165             (ipcarg_t) root->dev_handle, (ipcarg_t) lflag, (ipcarg_t) index,
     162        aid_t req = async_send_5(phone, VFS_OUT_LOOKUP, (sysarg_t) first,
     163            (sysarg_t) (first + len - 1) % PLB_SIZE,
     164            (sysarg_t) root->devmap_handle, (sysarg_t) lflag, (sysarg_t) index,
    166165            &answer);
    167166       
    168         ipcarg_t rc;
     167        sysarg_t rc;
    169168        async_wait_for(req, &rc);
    170         vfs_release_phone(phone);
     169        vfs_release_phone(root->fs_handle, phone);
    171170       
    172171        fibril_mutex_lock(&plb_mutex);
     
    179178        fibril_mutex_unlock(&plb_mutex);
    180179       
    181         if (((int) rc < EOK) || (!result))
     180        if ((int) rc < EOK)
    182181                return (int) rc;
     182
     183        if (!result)
     184                return EOK;
    183185       
    184186        result->triplet.fs_handle = (fs_handle_t) rc;
    185         result->triplet.dev_handle = (dev_handle_t) IPC_GET_ARG1(answer);
     187        result->triplet.devmap_handle = (devmap_handle_t) IPC_GET_ARG1(answer);
    186188        result->triplet.index = (fs_index_t) IPC_GET_ARG2(answer);
    187189        result->size =
     
    210212        ipc_call_t answer;
    211213        aid_t req = async_send_2(phone, VFS_OUT_OPEN_NODE,
    212             (ipcarg_t) result->triplet.dev_handle,
    213             (ipcarg_t) result->triplet.index, &answer);
    214        
    215         ipcarg_t rc;
     214            (sysarg_t) result->triplet.devmap_handle,
     215            (sysarg_t) result->triplet.index, &answer);
     216       
     217        sysarg_t rc;
    216218        async_wait_for(req, &rc);
    217         vfs_release_phone(phone);
     219        vfs_release_phone(result->triplet.fs_handle, phone);
    218220       
    219221        if (rc == EOK) {
Note: See TracChangeset for help on using the changeset viewer.