Changes in uspace/srv/fs/tmpfs/tmpfs.c [852b801:ffa2c8ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/tmpfs/tmpfs.c
r852b801 rffa2c8ef 42 42 43 43 #include "tmpfs.h" 44 #include <ipc/ipc.h>45 44 #include <ipc/services.h> 45 #include <ipc/ns.h> 46 46 #include <async.h> 47 47 #include <errno.h> 48 48 #include <unistd.h> 49 49 #include <stdio.h> 50 #include <task.h> 50 51 #include <libfs.h> 51 52 #include "../../vfs/vfs.h" … … 55 56 56 57 vfs_info_t tmpfs_vfs_info = { 57 .name = "tmpfs", 58 .name = NAME, 59 .concurrent_read_write = false, 60 .write_retains_size = false, 58 61 }; 59 62 … … 87 90 * created by IPC_M_CONNECT_TO_ME. 88 91 */ 89 ipc_answer_0(iid, EOK);92 async_answer_0(iid, EOK); 90 93 } 91 94 92 dprintf( "VFS-TMPFS connection established.\n");95 dprintf(NAME ": connection opened\n"); 93 96 while (1) { 94 97 ipc_callid_t callid; … … 96 99 97 100 callid = async_get_call(&call); 98 switch (IPC_GET_ METHOD(call)) {101 switch (IPC_GET_IMETHOD(call)) { 99 102 case IPC_M_PHONE_HUNGUP: 100 103 return; … … 104 107 case VFS_OUT_MOUNT: 105 108 tmpfs_mount(callid, &call); 109 break; 110 case VFS_OUT_UNMOUNTED: 111 tmpfs_unmounted(callid, &call); 112 break; 113 case VFS_OUT_UNMOUNT: 114 tmpfs_unmount(callid, &call); 106 115 break; 107 116 case VFS_OUT_LOOKUP: … … 133 142 break; 134 143 default: 135 ipc_answer_0(callid, ENOTSUP);144 async_answer_0(callid, ENOTSUP); 136 145 break; 137 146 } … … 148 157 } 149 158 150 int vfs_phone = ipc_connect_me_to_blocking(PHONE_NS,SERVICE_VFS, 0, 0);159 int vfs_phone = service_connect_blocking(SERVICE_VFS, 0, 0); 151 160 if (vfs_phone < EOK) { 152 161 printf(NAME ": Unable to connect to VFS\n"); … … 162 171 163 172 printf(NAME ": Accepting connections\n"); 173 task_retval(0); 164 174 async_manager(); 165 175 /* not reached */
Note:
See TracChangeset
for help on using the changeset viewer.