summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubretXie <[email protected]>2018-12-03 18:09:52 +0800
committerGitHub <[email protected]>2018-12-03 18:09:52 +0800
commit889afa7b0488a2bc30013619ad457fbc8854fabd (patch)
tree631bdb8a0c865bf0a5dd34c0cff566660b26f0ef
parent9757f6b405e2f7e4df829b92ba0cdfd65ef3313d (diff)
Update dfs_elm.c
fatfs: mkfs时增加FM_SFD参数,减少文件系统对flash空间的占用
-rw-r--r--components/dfs/filesystems/elmfat/dfs_elm.c2
1 files changed, 1 insertions, 1 deletions
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[] */