Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/dfs/dfs_v1/filesystems/elmfat/dfs_elm.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ int dfs_elm_mkfs(rt_device_t dev_id, const char *fs_name)
* just fill the FatFS[index] in elm fatfs to make mkfs work.
*/
logic_nbr[0] = '0' + index;
f_mount(fat, logic_nbr, (BYTE)index);
f_mount(fat, logic_nbr, 0); /* opt=0: delayed mount, just register FATFS object */
}
}
else
Expand All @@ -284,7 +284,7 @@ int dfs_elm_mkfs(rt_device_t dev_id, const char *fs_name)
/* check flag status, we need clear the temp driver stored in disk[] */
if (flag == FSM_STATUS_USE_TEMP_DRIVER)
{
f_mount(RT_NULL, logic_nbr, (BYTE)index);
f_mount(RT_NULL, logic_nbr, 0);
rt_free(fat);
disk[index] = RT_NULL;
/* close device */
Expand Down
4 changes: 2 additions & 2 deletions components/dfs/dfs_v2/filesystems/elmfat/dfs_elm.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ int dfs_elm_mkfs(rt_device_t dev_id, const char *fs_name)
* just fill the FatFS[index] in elm fatfs to make mkfs work.
*/
logic_nbr[0] = '0' + index;
f_mount(fat, logic_nbr, (BYTE)index);
f_mount(fat, logic_nbr, 0); /* opt=0: delayed mount, just register FATFS object */
}
}
else
Expand All @@ -322,7 +322,7 @@ int dfs_elm_mkfs(rt_device_t dev_id, const char *fs_name)
/* check flag status, we need clear the temp driver stored in disk[] */
if (flag == FSM_STATUS_USE_TEMP_DRIVER)
{
f_mount(RT_NULL, logic_nbr, (BYTE)index);
f_mount(RT_NULL, logic_nbr, 0);
rt_free(fat);
disk[index] = RT_NULL;
/* close device */
Expand Down
Loading