Ignore:
File:
1 edited

Legend:

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

    rffa2c8ef r852b801  
    4242
    4343#include "tmpfs.h"
     44#include <ipc/ipc.h>
    4445#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>
    5150#include <libfs.h>
    5251#include "../../vfs/vfs.h"
     
    5655
    5756vfs_info_t tmpfs_vfs_info = {
    58         .name = NAME,
    59         .concurrent_read_write = false,
    60         .write_retains_size = false,
     57        .name = "tmpfs",
    6158};
    6259
     
    9087                 * created by IPC_M_CONNECT_TO_ME.
    9188                 */
    92                 async_answer_0(iid, EOK);
     89                ipc_answer_0(iid, EOK);
    9390        }
    9491       
    95         dprintf(NAME ": connection opened\n");
     92        dprintf("VFS-TMPFS connection established.\n");
    9693        while (1) {
    9794                ipc_callid_t callid;
     
    9996       
    10097                callid = async_get_call(&call);
    101                 switch  (IPC_GET_IMETHOD(call)) {
     98                switch  (IPC_GET_METHOD(call)) {
    10299                case IPC_M_PHONE_HUNGUP:
    103100                        return;
     
    107104                case VFS_OUT_MOUNT:
    108105                        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);
    115106                        break;
    116107                case VFS_OUT_LOOKUP:
     
    142133                        break;
    143134                default:
    144                         async_answer_0(callid, ENOTSUP);
     135                        ipc_answer_0(callid, ENOTSUP);
    145136                        break;
    146137                }
     
    157148        }
    158149
    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);
    160151        if (vfs_phone < EOK) {
    161152                printf(NAME ": Unable to connect to VFS\n");
     
    171162
    172163        printf(NAME ": Accepting connections\n");
    173         task_retval(0);
    174164        async_manager();
    175165        /* not reached */
Note: See TracChangeset for help on using the changeset viewer.