Changeset 4965357f in mainline


Ignore:
Timestamp:
2011-11-05T12:36:02Z (13 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c08fb04
Parents:
76a67ce
Message:

Fix get_mtab_list() libc implementation

Location:
uspace/lib/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/vfs/vfs.c

    r76a67ce r4965357f  
    835835{
    836836        sysarg_t rc;
     837        aid_t req;
    837838        size_t i;
    838         size_t num_mounted_fs;
    839        
    840         async_exch_t *exch = vfs_exchange_begin();
    841 
    842         rc = async_req_0_0(exch, VFS_IN_GET_MTAB);
    843         if (rc != EOK)
    844                 goto exit;
     839        sysarg_t num_mounted_fs;
     840       
     841        async_exch_t *exch = vfs_exchange_begin();
     842
     843        req = async_send_0(exch, VFS_IN_GET_MTAB, NULL);
    845844
    846845        /* Ask VFS how many filesystems are mounted */
     
    859858                }
    860859
     860                memset(mtab_list_ent, 0, sizeof(mtab_list_ent_t));
     861
    861862                mtab_ent = &mtab_list_ent->mtab_ent;
    862863
    863                 rc = async_data_read_start(exch, (void *) &mtab_ent->mp,
     864                rc = async_data_read_start(exch, (void *) mtab_ent->mp,
    864865                    MAX_PATH_LEN);
    865866                if (rc != EOK)
    866867                        goto exit;
    867868
    868                 rc = async_data_read_start(exch, (void *) &mtab_ent->opts,
     869                rc = async_data_read_start(exch, (void *) mtab_ent->opts,
    869870                        MAX_MNTOPTS_LEN);
    870871                if (rc != EOK)
    871872                        goto exit;
    872873
    873                 rc = async_data_read_start(exch, (void *) &mtab_ent->fs_name,
     874                rc = async_data_read_start(exch, (void *) mtab_ent->fs_name,
    874875                        FS_NAME_MAXLEN);
    875876                if (rc != EOK)
     
    877878
    878879                sysarg_t p[3];
     880
    879881                int j;
    880 
    881882                for (j = 0; j < 3; ++j) {
    882883                        rc = async_req_0_1(exch, VFS_IN_PING, &p[j]);
     
    894895
    895896exit:
     897        async_wait_for(req, &rc);
    896898        vfs_exchange_end(exch);
    897899        return rc;
  • uspace/lib/c/include/vfs/vfs.h

    r76a67ce r4965357f  
    4242#include <stdio.h>
    4343#include <async.h>
     44#include "vfs_mtab.h"
    4445
    4546enum vfs_change_state_type {
Note: See TracChangeset for help on using the changeset viewer.