Changeset 5a2b765 in mainline for uspace/lib/c
- Timestamp:
- 2017-03-16T17:17:31Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 39c3b7f9
- Parents:
- 8ffedd8
- Location:
- uspace/lib/c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/vfs/vfs.c
r8ffedd8 r5a2b765 1115 1115 link_initialize(&ent->link); 1116 1116 str_cpy(ent->mp, sizeof(ent->mp), path); 1117 str_cpy(ent->fs_name, sizeof(ent->fs_name), "fixme");1118 1117 ent->service_id = stat->service_id; 1118 1119 struct statfs stfs; 1120 if (statfs(path, &stfs) == EOK) 1121 str_cpy(ent->fs_name, sizeof(ent->fs_name), stfs.fs_name); 1122 else 1123 str_cpy(ent->fs_name, sizeof(ent->fs_name), "?"); 1119 1124 1120 1125 list_append(&ent->link, mtab_list); -
uspace/lib/c/include/sys/statfs.h
r8ffedd8 r5a2b765 37 37 38 38 #include <sys/types.h> 39 #include <ipc/vfs.h> 39 40 40 41 struct statfs { 41 uint32_t f_type; /* type of file system */42 uint32_t 43 uint64_t 44 uint64_t 42 char fs_name[FS_NAME_MAXLEN + 1]; 43 uint32_t f_bsize; /* fundamental file system block size */ 44 uint64_t f_blocks; /* total data blocks in file system */ 45 uint64_t f_bfree; /* free blocks in fs */ 45 46 }; 46 47
Note:
See TracChangeset
for help on using the changeset viewer.