Rev 4153 | Rev 4581 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4153 | Rev 4327 | ||
---|---|---|---|
Line 125... | Line 125... | ||
125 | } |
125 | } |
126 | 126 | ||
127 | int main(int argc, char **argv) |
127 | int main(int argc, char **argv) |
128 | { |
128 | { |
129 | printf(NAME ": HelenOS TMPFS file system server\n"); |
129 | printf(NAME ": HelenOS TMPFS file system server\n"); |
- | 130 | ||
- | 131 | if (!tmpfs_init()) { |
|
- | 132 | printf(NAME ": failed to initialize TMPFS\n"); |
|
- | 133 | return -1; |
|
130 | 134 | } |
|
- | 135 | ||
131 | int vfs_phone = ipc_connect_me_to_blocking(PHONE_NS, SERVICE_VFS, 0, 0); |
136 | int vfs_phone = ipc_connect_me_to_blocking(PHONE_NS, SERVICE_VFS, 0, 0); |
132 | if (vfs_phone < EOK) { |
137 | if (vfs_phone < EOK) { |
133 | printf(NAME ": Unable to connect to VFS\n"); |
138 | printf(NAME ": Unable to connect to VFS\n"); |
134 | return -1; |
139 | return -1; |
135 | } |
140 | } |
Line 138... | Line 143... | ||
138 | tmpfs_connection); |
143 | tmpfs_connection); |
139 | if (rc != EOK) { |
144 | if (rc != EOK) { |
140 | printf(NAME ": Failed to register file system (%d)\n", rc); |
145 | printf(NAME ": Failed to register file system (%d)\n", rc); |
141 | return rc; |
146 | return rc; |
142 | } |
147 | } |
143 | 148 | ||
144 | printf(NAME ": Accepting connections\n"); |
149 | printf(NAME ": Accepting connections\n"); |
145 | async_manager(); |
150 | async_manager(); |
146 | /* not reached */ |
151 | /* not reached */ |
147 | return 0; |
152 | return 0; |
148 | } |
153 | } |