Changeset 4965357f in mainline
- Timestamp:
- 2011-11-05T12:36:02Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c08fb04
- Parents:
- 76a67ce
- Location:
- uspace/lib/c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/vfs/vfs.c
r76a67ce r4965357f 835 835 { 836 836 sysarg_t rc; 837 aid_t req; 837 838 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); 845 844 846 845 /* Ask VFS how many filesystems are mounted */ … … 859 858 } 860 859 860 memset(mtab_list_ent, 0, sizeof(mtab_list_ent_t)); 861 861 862 mtab_ent = &mtab_list_ent->mtab_ent; 862 863 863 rc = async_data_read_start(exch, (void *) &mtab_ent->mp,864 rc = async_data_read_start(exch, (void *) mtab_ent->mp, 864 865 MAX_PATH_LEN); 865 866 if (rc != EOK) 866 867 goto exit; 867 868 868 rc = async_data_read_start(exch, (void *) &mtab_ent->opts,869 rc = async_data_read_start(exch, (void *) mtab_ent->opts, 869 870 MAX_MNTOPTS_LEN); 870 871 if (rc != EOK) 871 872 goto exit; 872 873 873 rc = async_data_read_start(exch, (void *) &mtab_ent->fs_name,874 rc = async_data_read_start(exch, (void *) mtab_ent->fs_name, 874 875 FS_NAME_MAXLEN); 875 876 if (rc != EOK) … … 877 878 878 879 sysarg_t p[3]; 880 879 881 int j; 880 881 882 for (j = 0; j < 3; ++j) { 882 883 rc = async_req_0_1(exch, VFS_IN_PING, &p[j]); … … 894 895 895 896 exit: 897 async_wait_for(req, &rc); 896 898 vfs_exchange_end(exch); 897 899 return rc; -
uspace/lib/c/include/vfs/vfs.h
r76a67ce r4965357f 42 42 #include <stdio.h> 43 43 #include <async.h> 44 #include "vfs_mtab.h" 44 45 45 46 enum vfs_change_state_type {
Note:
See TracChangeset
for help on using the changeset viewer.