From 889afa7b0488a2bc30013619ad457fbc8854fabd Mon Sep 17 00:00:00 2001 From: HubretXie Date: Mon, 3 Dec 2018 18:09:52 +0800 Subject: [PATCH] Update dfs_elm.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fatfs: mkfs时增加FM_SFD参数,减少文件系统对flash空间的占用 --- components/dfs/filesystems/elmfat/dfs_elm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/dfs/filesystems/elmfat/dfs_elm.c b/components/dfs/filesystems/elmfat/dfs_elm.c index 290cf7c4bb..582333a714 100644 --- a/components/dfs/filesystems/elmfat/dfs_elm.c +++ b/components/dfs/filesystems/elmfat/dfs_elm.c @@ -265,7 +265,7 @@ int dfs_elm_mkfs(rt_device_t dev_id) /* [IN] Size of the allocation unit */ /* [-] Working buffer */ /* [IN] Size of working buffer */ - result = f_mkfs(logic_nbr, FM_ANY, 0, work, _MAX_SS); + result = f_mkfs(logic_nbr, FM_ANY|FM_SFD, 0, work, _MAX_SS); rt_free(work); work = RT_NULL; /* check flag status, we need clear the temp driver stored in disk[] */