/* this function will return the information about a mounted file system. */
int dfs_statfs(const char *path, struct statfs *buffer)
/* this function will return the information about a mounted file system. */
int dfs_statfs(const char *path, struct statfs *buffer)
{
    struct dfs_filesystem *fs;
    fs = dfs_filesystem_lookup(path);
    if (fs != NULL)
    {
        if (fs->ops->statfs != NULL)
            return fs->ops->statfs(fs, buffer);
    }
    return -1;
}