* this function will return the information about a mounted file system. * * @param path the path which mounted file system. * @param buffer the buffer to save the returned information. * * @return 0 on successful, others on failed. */
| 485 | * @return 0 on successful, others on failed. |
| 486 | */ |
| 487 | int dfs_statfs(const char *path, struct statfs *buffer) |
| 488 | { |
| 489 | struct dfs_filesystem *fs; |
| 490 | |
| 491 | fs = dfs_filesystem_lookup(path); |
| 492 | if (fs != NULL) |
| 493 | { |
| 494 | if (fs->ops->statfs != NULL) |
| 495 | return fs->ops->statfs(fs, buffer); |
| 496 | } |
| 497 | |
| 498 | rt_set_errno(-ENOSYS); |
| 499 | return -1; |
| 500 | } |
| 501 | |
| 502 | #ifdef RT_USING_DFS_MNTTABLE |
| 503 | int dfs_mount_table(void) |
no test coverage detected