Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/tmpfs/tmpfs.c

    r852b801 rffa2c8ef  
    4242
    4343#include "tmpfs.h"
    44 #include <ipc/ipc.h>
    4544#include <ipc/services.h>
     45#include <ipc/ns.h>
    4646#include <async.h>
    4747#include <errno.h>
    4848#include <unistd.h>
    4949#include <stdio.h>
     50#include <task.h>
    5051#include <libfs.h>
    5152#include "../../vfs/vfs.h"
     
    5556
    5657vfs_info_t tmpfs_vfs_info = {
    57         .name = "tmpfs",
     58        .name = NAME,
     59        .concurrent_read_write = false,
     60        .write_retains_size = false,
    5861};
    5962
     
    8790                 * created by IPC_M_CONNECT_TO_ME.
    8891                 */
    89                 ipc_answer_0(iid, EOK);
     92                async_answer_0(iid, EOK);
    9093        }
    9194       
    92         dprintf("VFS-TMPFS connection established.\n");
     95        dprintf(NAME ": connection opened\n");
    9396        while (1) {
    9497                ipc_callid_t callid;
     
    9699       
    97100                callid = async_get_call(&call);
    98                 switch  (IPC_GET_METHOD(call)) {
     101                switch  (IPC_GET_IMETHOD(call)) {
    99102                case IPC_M_PHONE_HUNGUP:
    100103                        return;
     
    104107                case VFS_OUT_MOUNT:
    105108                        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);
    106115                        break;
    107116                case VFS_OUT_LOOKUP:
     
    133142                        break;
    134143                default:
    135                         ipc_answer_0(callid, ENOTSUP);
     144                        async_answer_0(callid, ENOTSUP);
    136145                        break;
    137146                }
     
    148157        }
    149158
    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);
    151160        if (vfs_phone < EOK) {
    152161                printf(NAME ": Unable to connect to VFS\n");
     
    162171
    163172        printf(NAME ": Accepting connections\n");
     173        task_retval(0);
    164174        async_manager();
    165175        /* not reached */
Note: See TracChangeset for help on using the changeset viewer.