Subversion Repositories HelenOS

Rev

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

Rev 2742 Rev 2958
Line 56... Line 56...
56
    .ops = {
56
    .ops = {
57
        [IPC_METHOD_TO_VFS_OP(VFS_LOOKUP)] = VFS_OP_DEFINED,
57
        [IPC_METHOD_TO_VFS_OP(VFS_LOOKUP)] = VFS_OP_DEFINED,
58
        [IPC_METHOD_TO_VFS_OP(VFS_READ)] = VFS_OP_DEFINED,
58
        [IPC_METHOD_TO_VFS_OP(VFS_READ)] = VFS_OP_DEFINED,
59
        [IPC_METHOD_TO_VFS_OP(VFS_WRITE)] = VFS_OP_DEFINED,
59
        [IPC_METHOD_TO_VFS_OP(VFS_WRITE)] = VFS_OP_DEFINED,
60
        [IPC_METHOD_TO_VFS_OP(VFS_TRUNCATE)] = VFS_OP_DEFINED,
60
        [IPC_METHOD_TO_VFS_OP(VFS_TRUNCATE)] = VFS_OP_DEFINED,
61
        [IPC_METHOD_TO_VFS_OP(VFS_MOUNT)] = VFS_OP_NULL,
61
        [IPC_METHOD_TO_VFS_OP(VFS_MOUNT)] = VFS_OP_DEFINED,
62
        [IPC_METHOD_TO_VFS_OP(VFS_UNMOUNT)] = VFS_OP_NULL,
62
        [IPC_METHOD_TO_VFS_OP(VFS_UNMOUNT)] = VFS_OP_NULL,
63
        [IPC_METHOD_TO_VFS_OP(VFS_DESTROY)] = VFS_OP_DEFINED,
63
        [IPC_METHOD_TO_VFS_OP(VFS_DESTROY)] = VFS_OP_DEFINED,
64
    }
64
    }
65
};
65
};
66
 
66
 
Line 101... Line 101...
101
        ipc_callid_t callid;
101
        ipc_callid_t callid;
102
        ipc_call_t call;
102
        ipc_call_t call;
103
   
103
   
104
        callid = async_get_call(&call);
104
        callid = async_get_call(&call);
105
        switch  (IPC_GET_METHOD(call)) {
105
        switch  (IPC_GET_METHOD(call)) {
-
 
106
        case VFS_MOUNT:
-
 
107
            tmpfs_mount(callid, &call);
-
 
108
            break;
106
        case VFS_LOOKUP:
109
        case VFS_LOOKUP:
107
            tmpfs_lookup(callid, &call);
110
            tmpfs_lookup(callid, &call);
108
            break;
111
            break;
109
        case VFS_READ:
112
        case VFS_READ:
110
            tmpfs_read(callid, &call);
113
            tmpfs_read(callid, &call);