Skip to content

Commit d6e40f2

Browse files
xqyjljGuozhanxin
authored andcommitted
✨ feat(components/dfs/filesystems/tmpfs/dfs_tmpfs.c): add f_bavail support
1 parent 7fb8f61 commit d6e40f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/dfs/filesystems/tmpfs/dfs_tmpfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ int dfs_tmpfs_statfs(struct dfs_filesystem *fs, struct statfs *buf)
157157
buf->f_bsize = 512;
158158
buf->f_blocks = (superblock->df_size + 511) / 512;
159159
buf->f_bfree = 1;
160+
buf->f_bavail = buf->f_bfree;
160161

161162
return RT_EOK;
162163
}

0 commit comments

Comments
 (0)