提交 d6e40f2a 编写于 作者: xqyjlj's avatar xqyjlj 提交者: guo

feat(components/dfs/filesystems/tmpfs/dfs_tmpfs.c): add f_bavail support

上级 7fb8f617
...@@ -157,6 +157,7 @@ int dfs_tmpfs_statfs(struct dfs_filesystem *fs, struct statfs *buf) ...@@ -157,6 +157,7 @@ int dfs_tmpfs_statfs(struct dfs_filesystem *fs, struct statfs *buf)
buf->f_bsize = 512; buf->f_bsize = 512;
buf->f_blocks = (superblock->df_size + 511) / 512; buf->f_blocks = (superblock->df_size + 511) / 512;
buf->f_bfree = 1; buf->f_bfree = 1;
buf->f_bavail = buf->f_bfree;
return RT_EOK; return RT_EOK;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册