Changes in uspace/srv/vfs/vfs.c [c1f7a315:0d35511] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs.c

    rc1f7a315 r0d35511  
    7676}
    7777
    78 static void vfs_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg)
    79 {
    80         bool cont = true;
    81        
    82         /*
    83          * The connection was opened via the IPC_CONNECT_ME_TO call.
    84          * This call needs to be answered.
    85          */
    86         async_answer_0(iid, EOK);
    87        
    88         while (cont) {
    89                 ipc_call_t call;
    90                 ipc_callid_t callid = async_get_call(&call);
    91                
    92                 if (!IPC_GET_IMETHOD(call))
    93                         break;
    94                
    95                 switch (IPC_GET_IMETHOD(call)) {
    96                 case VFS_IN_REGISTER:
    97                         vfs_register(callid, &call);
    98                         cont = false;
    99                         break;
    100                 case VFS_IN_MOUNT:
    101                         vfs_mount_srv(callid, &call);
    102                         break;
    103                 case VFS_IN_UNMOUNT:
    104                         vfs_unmount_srv(callid, &call);
    105                         break;
    106                 case VFS_IN_OPEN:
    107                         vfs_open(callid, &call);
    108                         break;
    109                 case VFS_IN_CLOSE:
    110                         vfs_close(callid, &call);
    111                         break;
    112                 case VFS_IN_READ:
    113                         vfs_read(callid, &call);
    114                         break;
    115                 case VFS_IN_WRITE:
    116                         vfs_write(callid, &call);
    117                         break;
    118                 case VFS_IN_SEEK:
    119                         vfs_seek(callid, &call);
    120                         break;
    121                 case VFS_IN_TRUNCATE:
    122                         vfs_truncate(callid, &call);
    123                         break;
    124                 case VFS_IN_FSTAT:
    125                         vfs_fstat(callid, &call);
    126                         break;
    127                 case VFS_IN_STAT:
    128                         vfs_stat(callid, &call);
    129                         break;
    130                 case VFS_IN_MKDIR:
    131                         vfs_mkdir(callid, &call);
    132                         break;
    133                 case VFS_IN_UNLINK:
    134                         vfs_unlink(callid, &call);
    135                         break;
    136                 case VFS_IN_RENAME:
    137                         vfs_rename(callid, &call);
    138                         break;
    139                 case VFS_IN_SYNC:
    140                         vfs_sync(callid, &call);
    141                         break;
    142                 case VFS_IN_DUP:
    143                         vfs_dup(callid, &call);
    144                         break;
    145                 case VFS_IN_WAIT_HANDLE:
    146                         vfs_wait_handle(callid, &call);
    147                         break;
    148                 case VFS_IN_MTAB_GET:
    149                         vfs_get_mtab(callid, &call);
    150                         break;
    151                 case VFS_IN_STATFS:
    152                         vfs_statfs(callid, &call);
    153                         break;
    154                 default:
    155                         async_answer_0(callid, ENOTSUP);
    156                         break;
    157                 }
    158         }
    159        
    160         /*
    161          * Open files for this client will be cleaned up when its last
    162          * connection fibril terminates.
    163          */
    164 }
    165 
    16678static void notification_handler(ipc_callid_t callid, ipc_call_t *call, void *arg)
    16779{
    16880        if (IPC_GET_ARG1(*call) == VFS_PASS_HANDLE)
    169                 vfs_pass_handle(
     81                vfs_op_pass_handle(
    17082                    (task_id_t) MERGE_LOUP32(IPC_GET_ARG4(*call),
    17183                    IPC_GET_ARG5(*call)), call->in_task_id,
Note: See TracChangeset for help on using the changeset viewer.