Rev 4562 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4562 | Rev 4584 | ||
---|---|---|---|
Line 96... | Line 96... | ||
96 | 96 | ||
97 | callid = async_get_call(&call); |
97 | callid = async_get_call(&call); |
98 | switch (IPC_GET_METHOD(call)) { |
98 | switch (IPC_GET_METHOD(call)) { |
99 | case IPC_M_PHONE_HUNGUP: |
99 | case IPC_M_PHONE_HUNGUP: |
100 | return; |
100 | return; |
101 | case VFS_MOUNTED: |
101 | case VFS_OUT_MOUNTED: |
102 | tmpfs_mounted(callid, &call); |
102 | tmpfs_mounted(callid, &call); |
103 | break; |
103 | break; |
104 | case VFS_MOUNT: |
104 | case VFS_OUT_MOUNT: |
105 | tmpfs_mount(callid, &call); |
105 | tmpfs_mount(callid, &call); |
106 | break; |
106 | break; |
107 | case VFS_LOOKUP: |
107 | case VFS_OUT_LOOKUP: |
108 | tmpfs_lookup(callid, &call); |
108 | tmpfs_lookup(callid, &call); |
109 | break; |
109 | break; |
110 | case VFS_READ: |
110 | case VFS_OUT_READ: |
111 | tmpfs_read(callid, &call); |
111 | tmpfs_read(callid, &call); |
112 | break; |
112 | break; |
113 | case VFS_WRITE: |
113 | case VFS_OUT_WRITE: |
114 | tmpfs_write(callid, &call); |
114 | tmpfs_write(callid, &call); |
115 | break; |
115 | break; |
116 | case VFS_TRUNCATE: |
116 | case VFS_OUT_TRUNCATE: |
117 | tmpfs_truncate(callid, &call); |
117 | tmpfs_truncate(callid, &call); |
118 | break; |
118 | break; |
119 | case VFS_CLOSE: |
119 | case VFS_OUT_CLOSE: |
120 | tmpfs_close(callid, &call); |
120 | tmpfs_close(callid, &call); |
121 | break; |
121 | break; |
122 | case VFS_DESTROY: |
122 | case VFS_OUT_DESTROY: |
123 | tmpfs_destroy(callid, &call); |
123 | tmpfs_destroy(callid, &call); |
124 | break; |
124 | break; |
125 | case VFS_OPEN_NODE: |
125 | case VFS_OUT_OPEN_NODE: |
126 | tmpfs_open_node(callid, &call); |
126 | tmpfs_open_node(callid, &call); |
127 | break; |
127 | break; |
128 | case VFS_DEVICE: |
128 | case VFS_OUT_DEVICE: |
129 | tmpfs_device(callid, &call); |
129 | tmpfs_device(callid, &call); |
130 | break; |
130 | break; |
131 | case VFS_SYNC: |
131 | case VFS_OUT_SYNC: |
132 | tmpfs_sync(callid, &call); |
132 | tmpfs_sync(callid, &call); |
133 | break; |
133 | break; |
134 | default: |
134 | default: |
135 | ipc_answer_0(callid, ENOTSUP); |
135 | ipc_answer_0(callid, ENOTSUP); |
136 | break; |
136 | break; |
Line 150... | Line 150... | ||
150 | int vfs_phone = ipc_connect_me_to_blocking(PHONE_NS, SERVICE_VFS, 0, 0); |
150 | int vfs_phone = ipc_connect_me_to_blocking(PHONE_NS, SERVICE_VFS, 0, 0); |
151 | if (vfs_phone < EOK) { |
151 | if (vfs_phone < EOK) { |
152 | printf(NAME ": Unable to connect to VFS\n"); |
152 | printf(NAME ": Unable to connect to VFS\n"); |
153 | return -1; |
153 | return -1; |
154 | } |
154 | } |
155 | 155 | ||
156 | int rc = fs_register(vfs_phone, &tmpfs_reg, &tmpfs_vfs_info, |
156 | int rc = fs_register(vfs_phone, &tmpfs_reg, &tmpfs_vfs_info, |
157 | tmpfs_connection); |
157 | tmpfs_connection); |
158 | if (rc != EOK) { |
158 | if (rc != EOK) { |
159 | printf(NAME ": Failed to register file system (%d)\n", rc); |
159 | printf(NAME ": Failed to register file system (%d)\n", rc); |
160 | return rc; |
160 | return rc; |