Changeset 1affcdf3 in mainline for uspace/srv/fs/minixfs/mfs.c


Ignore:
Timestamp:
2011-06-10T19:33:41Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1878386
Parents:
13ecdac9 (diff), 79a141a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/minixfs/mfs.c

    r13ecdac9 r1affcdf3  
    4141
    4242#include <ipc/services.h>
    43 #include <ipc/ns.h>
     43#include <ns.h>
    4444#include <async.h>
    4545#include <errno.h>
     
    4747#include <task.h>
    4848#include <stdio.h>
     49#include <libfs.h>
    4950#include "mfs.h"
    5051
     
    9697                /*mfsdebug(NAME "method = %d\n", method);*/
    9798                switch  (method) {
    98                 case IPC_M_PHONE_HUNGUP:
    99                         return;
    10099                case VFS_OUT_MOUNTED:
    101100                        mfs_mounted(callid, &call);
     
    135134int main(int argc, char **argv)
    136135{
    137         int vfs_phone;
    138136        int rc;
    139137
    140138        printf(NAME ": HelenOS Minix file system server\n");
    141139
    142         vfs_phone = service_connect_blocking(SERVICE_VFS, 0, 0);
     140        async_sess_t *vfs_sess = service_connect_blocking(EXCHANGE_SERIALIZE,
     141                                SERVICE_VFS, 0, 0);
    143142
    144         if (vfs_phone < EOK) {
     143        if (!vfs_sess) {
    145144                printf(NAME ": failed to connect to VFS\n");
    146145                return -1;
    147146        }
    148147
    149         rc = fs_register(vfs_phone, &mfs_reg, &mfs_vfs_info, mfs_connection);
     148        rc = fs_register(vfs_sess, &mfs_reg, &mfs_vfs_info, mfs_connection);
    150149        if (rc != EOK)
    151150                goto err;
Note: See TracChangeset for help on using the changeset viewer.