Changeset 5f4cfb1e in mainline for uspace/srv/vfs/vfs_lookup.c


Ignore:
Timestamp:
2007-09-28T10:36:31Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
13125d3
Parents:
566d798d
Message:

VFS work.
Upon FS registration via VFS_REGISTER, the client is assigned a unique file
system handle. When generating the VFS_LOOKUP request in VFS, we also need to
pass the device handle. Add function to transform file system handle to phone.
Implement basic multi-call VFS request serialization on VFS side.

File:
1 edited

Legend:

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

    r566d798d r5f4cfb1e  
    126126
    127127        ipc_call_t answer;
    128         int phone = 0;          /* TODO */
    129         aid_t req = async_send_2(phone, VFS_LOOKUP, (ipcarg_t) first,
    130             (ipcarg_t) last, &answer);
     128        int phone = vfs_grab_phone(rootfs->fs_handle);
     129        aid_t req = async_send_3(phone, VFS_LOOKUP, (ipcarg_t) first,
     130            (ipcarg_t) last, (ipcarg_t) rootfs->dev_handle, &answer);
     131        vfs_release_phone(phone);
    131132
    132133        ipcarg_t rc;
Note: See TracChangeset for help on using the changeset viewer.