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