Changeset 5a2b765 in mainline for uspace/lib/fs/libfs.c
- Timestamp:
- 2017-03-16T17:17:31Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
- Children:
- 39c3b7f9
- Parents:
- 8ffedd8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/fs/libfs.c
r8ffedd8 r5a2b765 43 43 #include <dirent.h> 44 44 #include <mem.h> 45 #include <str.h> 45 46 #include <sys/stat.h> 46 47 #include <sys/statfs.h> 47 48 #include <stdlib.h> 48 49 #include <fibril_synch.h> 50 #include <ipc/vfs.h> 49 51 50 52 #define on_error(rc, action) \ … … 72 74 static vfs_out_ops_t *vfs_out_ops = NULL; 73 75 static libfs_ops_t *libfs_ops = NULL; 76 77 static char fs_name[FS_NAME_MAXLEN + 1]; 74 78 75 79 static void libfs_link(libfs_ops_t *, fs_handle_t, ipc_callid_t, … … 394 398 vfs_out_ops = vops; 395 399 libfs_ops = lops; 400 401 str_cpy(fs_name, sizeof(fs_name), info->name); 396 402 397 403 /* … … 817 823 memset(&st, 0, sizeof(struct statfs)); 818 824 825 str_cpy(st.fs_name, sizeof(st.fs_name), fs_name); 826 819 827 if (ops->size_block != NULL) { 820 828 rc = ops->size_block(service_id, &st.f_bsize);
Note:
See TracChangeset
for help on using the changeset viewer.