Changeset a33f0a6 in mainline for uspace/srv/bd/file_bd/file_bd.c


Ignore:
Timestamp:
2011-08-03T17:34:57Z (14 years ago)
Author:
Oleg Romanenko <romanenko.oleg@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1940326
Parents:
52a79081 (diff), 3fab770 (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 from mainline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/file_bd/file_bd.c

    r52a79081 ra33f0a6  
    6666static void print_usage(void);
    6767static int file_bd_init(const char *fname);
    68 static void file_bd_connection(ipc_callid_t iid, ipc_call_t *icall);
     68static void file_bd_connection(ipc_callid_t iid, ipc_call_t *icall, void *);
    6969static int file_bd_read_blocks(uint64_t ba, size_t cnt, void *buf);
    7070static int file_bd_write_blocks(uint64_t ba, size_t cnt, const void *buf);
     
    170170}
    171171
    172 static void file_bd_connection(ipc_callid_t iid, ipc_call_t *icall)
     172static void file_bd_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg)
    173173{
    174174        void *fs_va = NULL;
     
    198198        (void) async_share_out_finalize(callid, fs_va);
    199199
    200         while (1) {
     200        while (true) {
    201201                callid = async_get_call(&call);
    202202                method = IPC_GET_IMETHOD(call);
    203                 switch (method) {
    204                 case IPC_M_PHONE_HUNGUP:
     203               
     204                if (!method) {
    205205                        /* The other side has hung up. */
    206206                        async_answer_0(callid, EOK);
    207207                        return;
     208                }
     209               
     210                switch (method) {
    208211                case BD_READ_BLOCKS:
    209212                        ba = MERGE_LOUP32(IPC_GET_ARG1(call),
Note: See TracChangeset for help on using the changeset viewer.