Changeset f8838b8 in mainline for uspace/srv/vfs/vfs_ops.c


Ignore:
Timestamp:
2011-11-05T15:16:23Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
41e9ef7
Parents:
f346039
Message:

flag, instance, and fs_handle fields can be sent together in a single IPC message

File:
1 edited

Legend:

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

    rf346039 rf8838b8  
    13841384                    str_size(mtab_ent->fs_name));
    13851385
    1386                 sysarg_t p[3];
    1387 
    1388                 p[0] = mtab_ent->flags;
    1389                 p[1] = mtab_ent->instance;
    1390                 p[2] = mtab_ent->fs_handle;
    1391 
    1392                 int i;
    1393                 for (i = 0; i < 3; ++i) {
    1394                         callid = async_get_call(&data);
    1395                         if (IPC_GET_IMETHOD(data) != VFS_IN_PING) {
    1396                                 rc = ENOTSUP;
    1397                                 async_answer_1(callid, rc, 0);
    1398                                 goto exit;
    1399                         }
    1400                         async_answer_1(callid, EOK, p[i]);
     1386                callid = async_get_call(&data);
     1387
     1388                if (IPC_GET_IMETHOD(data) != VFS_IN_PING) {
     1389                        rc = ENOTSUP;
     1390                        async_answer_1(callid, rc, 0);
     1391                        goto exit;
    14011392                }
    14021393
    14031394                rc = EOK;
     1395                async_answer_3(callid, rc, mtab_ent->flags, mtab_ent->instance,
     1396                    mtab_ent->fs_handle);
    14041397        }
    14051398
Note: See TracChangeset for help on using the changeset viewer.