Changes in uspace/lib/c/generic/vfs/mtab.c [a35b458:5a6cc679] in mainline
- File:
-
- 1 edited
-
uspace/lib/c/generic/vfs/mtab.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/vfs/mtab.c
ra35b458 r5a6cc679 40 40 #include <errno.h> 41 41 #include <assert.h> 42 #include <str.h>43 42 44 static void process_mp(const char *path, vfs_stat_t *stat, list_t *mtab_list)43 static void process_mp(const char *path, struct stat *stat, list_t *mtab_list) 45 44 { 46 45 mtab_ent_t *ent; … … 54 53 ent->service_id = stat->service_id; 55 54 56 vfs_statfs_tstfs;55 struct statfs stfs; 57 56 if (vfs_statfs_path(path, &stfs) == EOK) 58 57 str_cpy(ent->fs_name, sizeof(ent->fs_name), stfs.fs_name); 59 58 else 60 59 str_cpy(ent->fs_name, sizeof(ent->fs_name), "?"); 61 60 62 61 list_append(&ent->link, mtab_list); 63 62 } … … 75 74 while ((dirent = readdir(dir)) != NULL) { 76 75 char *child; 77 vfs_stat_t st;76 struct stat st; 78 77 errno_t rc; 79 78 int ret; … … 123 122 errno_t vfs_get_mtab_list(list_t *mtab_list) 124 123 { 125 vfs_stat_t st;124 struct stat st; 126 125 127 126 errno_t rc = vfs_stat_path("/", &st);
Note:
See TracChangeset
for help on using the changeset viewer.
