Subversion Repositories HelenOS

Rev

Rev 4419 | Rev 4537 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4419 Rev 4420
Line 50... Line 50...
50
#define NAME "vfs"
50
#define NAME "vfs"
51
 
51
 
52
static void vfs_connection(ipc_callid_t iid, ipc_call_t *icall)
52
static void vfs_connection(ipc_callid_t iid, ipc_call_t *icall)
53
{
53
{
54
    bool keep_on_going = true;
54
    bool keep_on_going = true;
55
   
55
 
56
    /*
56
    /*
57
     * The connection was opened via the IPC_CONNECT_ME_TO call.
57
     * The connection was opened via the IPC_CONNECT_ME_TO call.
58
     * This call needs to be answered.
58
     * This call needs to be answered.
59
     */
59
     */
60
    ipc_answer_0(iid, EOK);
60
    ipc_answer_0(iid, EOK);
Line 78... Line 78...
78
       
78
       
79
        switch (IPC_GET_METHOD(call)) {
79
        switch (IPC_GET_METHOD(call)) {
80
        case IPC_M_PHONE_HUNGUP:
80
        case IPC_M_PHONE_HUNGUP:
81
            keep_on_going = false;
81
            keep_on_going = false;
82
            break;
82
            break;
83
        case IPC_M_CONNECT_ME_TO:
-
 
84
            /*
-
 
85
             * Connect the client file system to another one.
-
 
86
             */
-
 
87
            /* FIXME:
-
 
88
             * Prevent ordinary clients from connecting to file
-
 
89
             * system servers directly. This should be solved by
-
 
90
             * applying some security mechanisms.
-
 
91
             */
-
 
92
            fs_handle = IPC_GET_ARG1(call);
-
 
93
            phone = vfs_grab_phone(fs_handle);
-
 
94
            (void) ipc_forward_fast(callid, phone, 0, 0, 0,
-
 
95
                IPC_FF_NONE);
-
 
96
            vfs_release_phone(phone);
-
 
97
            break;
-
 
98
        case VFS_REGISTER:
83
        case VFS_REGISTER:
99
            vfs_register(callid, &call);
84
            vfs_register(callid, &call);
100
            /*
85
            /*
101
             * Keep the connection open so that a file system can
86
             * Keep the connection open so that a file system can
102
             * later ask us to connect it to another file system.
87
             * later ask us to connect it to another file system.