From d6e40f2a24bcb680aa0a8aae8f49e1b467ba52a9 Mon Sep 17 00:00:00 2001 From: xqyjlj Date: Wed, 29 Mar 2023 14:37:42 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(components/dfs/filesystems/tmp?= =?UTF-8?q?fs/dfs=5Ftmpfs.c):=20add=20f=5Fbavail=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/dfs/filesystems/tmpfs/dfs_tmpfs.c | 1 + 1 file changed, 1 insertion(+) 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; }