Browse Source

Update dfs_elm.c

fatfs: mkfs时增加FM_SFD参数,减少文件系统对flash空间的占用
HubretXie 6 years ago
parent
commit
889afa7b04
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/dfs/filesystems/elmfat/dfs_elm.c

+ 1 - 1
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 */
     /* [IN] Size of the allocation unit */
     /* [-]  Working buffer */
     /* [-]  Working buffer */
     /* [IN] Size of 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;
     rt_free(work); work = RT_NULL;
 
 
     /* check flag status, we need clear the temp driver stored in disk[] */
     /* check flag status, we need clear the temp driver stored in disk[] */