summaryrefslogtreecommitdiff
path: root/components/dfs/filesystems
diff options
context:
space:
mode:
authorxqyjlj <[email protected]>2023-03-29 14:37:42 +0800
committerguo <[email protected]>2023-03-31 10:56:37 +0800
commitd6e40f2a24bcb680aa0a8aae8f49e1b467ba52a9 (patch)
tree7416762015e686fdf695da3d5a42eed6adbc8b73 /components/dfs/filesystems
parent7fb8f617561c2761d9e804ef4e83a881271a3d3c (diff)
✨ feat(components/dfs/filesystems/tmpfs/dfs_tmpfs.c): add f_bavail support
Diffstat (limited to 'components/dfs/filesystems')
-rw-r--r--components/dfs/filesystems/tmpfs/dfs_tmpfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/dfs/filesystems/tmpfs/dfs_tmpfs.c b/components/dfs/filesystems/tmpfs/dfs_tmpfs.c
index d7bc27731b..5dbd174286 100644
--- a/components/dfs/filesystems/tmpfs/dfs_tmpfs.c
+++ b/components/dfs/filesystems/tmpfs/dfs_tmpfs.c
@@ -157,6 +157,7 @@ int dfs_tmpfs_statfs(struct dfs_filesystem *fs, struct statfs *buf)
buf->f_bsize = 512;
buf->f_blocks = (superblock->df_size + 511) / 512;
buf->f_bfree = 1;
+ buf->f_bavail = buf->f_bfree;
return RT_EOK;
}