Changeset 5a5abf1 in mainline


Ignore:
Timestamp:
2009-02-01T13:48:03Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
741a7af9
Parents:
b7c4044
Message:

Allow VFS to interconnect two file system servers.

File:
1 edited

Legend:

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

    rb7c4044 r5a5abf1  
    7373                ipc_callid_t callid;
    7474                ipc_call_t call;
     75                int phone;
     76                fs_handle_t fs_handle;
    7577
    7678                callid = async_get_call(&call);
     
    7981                case IPC_M_PHONE_HUNGUP:
    8082                        keep_on_going = false;
     83                        break;
     84                case IPC_M_CONNECT_ME_TO:
     85                        /*
     86                         * Connect the client file system to another one.
     87                         */
     88                        /* FIXME:
     89                         * Prevent ordinary clients from connecting to file
     90                         * system servers directly. This should be solved by
     91                         * applying some security mechanisms.
     92                         */
     93                        fs_handle = IPC_GET_ARG1(call);
     94                        phone = vfs_grab_phone(fs_handle);
     95                        (void) ipc_forward_fast(callid, phone, 0, 0, 0,
     96                            IPC_FF_NONE);
     97                        vfs_release_phone(phone);
    8198                        break;
    8299                case VFS_REGISTER:
Note: See TracChangeset for help on using the changeset viewer.