Browse Source

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

xqyjlj 2 years ago
parent
commit
d6e40f2a24
1 changed files with 1 additions and 0 deletions
  1. 1 0
      components/dfs/filesystems/tmpfs/dfs_tmpfs.c

+ 1 - 0
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_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;
 }
 }