Rev 4420 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4420 | Rev 4537 | ||
---|---|---|---|
Line 41... | Line 41... | ||
41 | #include <errno.h> |
41 | #include <errno.h> |
42 | #include <stdio.h> |
42 | #include <stdio.h> |
43 | #include <bool.h> |
43 | #include <bool.h> |
44 | #include <string.h> |
44 | #include <string.h> |
45 | #include <as.h> |
45 | #include <as.h> |
46 | #include <libadt/list.h> |
46 | #include <adt/list.h> |
47 | #include <atomic.h> |
47 | #include <atomic.h> |
48 | #include "vfs.h" |
48 | #include "vfs.h" |
49 | 49 | ||
50 | #define NAME "vfs" |
50 | #define NAME "vfs" |
51 | 51 | ||
Line 92... | Line 92... | ||
92 | vfs_mount(callid, &call); |
92 | vfs_mount(callid, &call); |
93 | break; |
93 | break; |
94 | case VFS_OPEN: |
94 | case VFS_OPEN: |
95 | vfs_open(callid, &call); |
95 | vfs_open(callid, &call); |
96 | break; |
96 | break; |
- | 97 | case VFS_OPEN_NODE: |
|
- | 98 | vfs_open_node(callid, &call); |
|
- | 99 | break; |
|
97 | case VFS_CLOSE: |
100 | case VFS_CLOSE: |
98 | vfs_close(callid, &call); |
101 | vfs_close(callid, &call); |
99 | break; |
102 | break; |
100 | case VFS_READ: |
103 | case VFS_READ: |
101 | vfs_read(callid, &call); |
104 | vfs_read(callid, &call); |
Line 116... | Line 119... | ||
116 | vfs_unlink(callid, &call); |
119 | vfs_unlink(callid, &call); |
117 | break; |
120 | break; |
118 | case VFS_RENAME: |
121 | case VFS_RENAME: |
119 | vfs_rename(callid, &call); |
122 | vfs_rename(callid, &call); |
120 | break; |
123 | break; |
- | 124 | case VFS_DEVICE: |
|
- | 125 | vfs_device(callid, &call); |
|
- | 126 | break; |
|
- | 127 | case VFS_SYNC: |
|
- | 128 | vfs_sync(callid, &call); |
|
- | 129 | break; |
|
- | 130 | case VFS_NODE: |
|
- | 131 | vfs_node(callid, &call); |
|
- | 132 | break; |
|
121 | default: |
133 | default: |
122 | ipc_answer_0(callid, ENOTSUP); |
134 | ipc_answer_0(callid, ENOTSUP); |
123 | break; |
135 | break; |
124 | } |
136 | } |
125 | } |
137 | } |
Line 162... | Line 174... | ||
162 | memset(plb, 0, PLB_SIZE); |
174 | memset(plb, 0, PLB_SIZE); |
163 | 175 | ||
164 | /* |
176 | /* |
165 | * Set a connectio handling function/fibril. |
177 | * Set a connectio handling function/fibril. |
166 | */ |
178 | */ |
- | 179 | async_set_pending(vfs_process_pending_mount); |
|
167 | async_set_client_connection(vfs_connection); |
180 | async_set_client_connection(vfs_connection); |
168 | 181 | ||
169 | /* |
182 | /* |
170 | * Register at the naming service. |
183 | * Register at the naming service. |
171 | */ |
184 | */ |