Changeset 6a44ee4 in mainline for uspace/srv/vfs/vfs.c


Ignore:
Timestamp:
2011-07-20T15:26:21Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
efcebe1
Parents:
25bef0ff (diff), a701812 (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/vfs/vfs.c

    r25bef0ff r6a44ee4  
    3737
    3838#include <ipc/services.h>
    39 #include <ipc/ns.h>
     39#include <ns.h>
    4040#include <async.h>
    4141#include <errno.h>
     
    4949#define NAME  "vfs"
    5050
    51 static void vfs_connection(ipc_callid_t iid, ipc_call_t *icall)
     51static void vfs_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg)
    5252{
    53         bool keep_on_going = true;
    54 
     53        bool cont = true;
     54       
    5555        /*
    5656         * The connection was opened via the IPC_CONNECT_ME_TO call.
     
    5959        async_answer_0(iid, EOK);
    6060       
    61         while (keep_on_going) {
     61        while (cont) {
    6262                ipc_call_t call;
    6363                ipc_callid_t callid = async_get_call(&call);
    6464               
     65                if (!IPC_GET_IMETHOD(call))
     66                        break;
     67               
    6568                switch (IPC_GET_IMETHOD(call)) {
    66                 case IPC_M_PHONE_HUNGUP:
    67                         keep_on_going = false;
    68                         break;
    6969                case VFS_IN_REGISTER:
    7070                        vfs_register(callid, &call);
    71                         keep_on_going = false;
     71                        cont = false;
    7272                        break;
    7373                case VFS_IN_MOUNT:
     
    123123                }
    124124        }
    125 
     125       
    126126        /*
    127127         * Open files for this client will be cleaned up when its last
Note: See TracChangeset for help on using the changeset viewer.